Câu hỏi phỏng vấn Git
Câu hỏi

What is Git fork? What is difference between fork, branch and clone?

Câu trả lời

Here is a concise answer to your question:

A Git fork is a complete copy of a repository that is hosted on a remote server like GitHub. When you fork a repo, you create an independent copy of it under your own account that you can modify without affecting the original[1][2][3]. Forks are commonly used to contribute to open-source projects or to create a personal version of a project[4].

The key differences between forking, branching, and cloning in Git are:

  • Forking creates a complete copy of a repository on a remote server under your own account[1][2][3]. Branching creates a new branch within the same repository[1][4]. Cloning creates a local copy of a repository on your machine[1][2][3].

  • Forks are independent copies that you can modify without affecting the original[1][2][3]. Branches are part of the same repository and changes can be merged back in[1][4]. ...

junior

junior

Gợi ý câu hỏi phỏng vấn

junior

When should I use git stash ?

entry

What is Git?

entry

What is difference between Git vs SVN?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào