0 votes
in Git by
What is Git fork? What is the difference between fork, branch, and clone?

1 Answer

0 votes
by
A fork is a copy of a repository. Normally you fork a repository so that you are able to freely experiment with changes without affecting the original project. Most commonly, forks are used to either propose changes to someone else’s project or to use someone else’s project as a starting point for your own idea.

git cloning means pointing to an existing repository and make a copy of that repository in a new directory, at some other location. The original repository can be located on the local file system or on remote machine accessible supported protocols. The git clone command is used to create a copy of an existing Git repository.

In very simple words, git branches are individual projects within a git repository. Different branches within a repository can have completely different files and folders, or it could have everything the same except for some lines of code in a file.

Related questions

0 votes
asked Jan 9, 2021 in Git by SakshiSharma
0 votes
asked Mar 26, 2021 in Git by rajeshsharma
...