Number | Base of difference | Fork | Clone |
1 | Concept or Process | When we say about Fork in Git it is a concept. | When we say about the Clone in Git it is a process. |
2 | Done on | When we say about Forking it is done on the GitHub Account. | And when we say about Cloning it is done by using Git. |
3 | Command | When we say about Forking it is just containing a separate copy of the repository and there is no command involved. | When we say about Cloning it is done through the command "git clone" and it is a process of receiving all the code files to the local machine. |
4 | Copy | When we say about Forking here Forking a repositroy creates a copy of the original repository on our github account. | When we say about Cloning in Cloning a repository creates a copy of the original repository on our local machine. |
5 | Merged | When we made a change to Forked repository it can be merged with the original repository via a pull request. | When we made changes to Cloned repository it cannot be merged with the original repository unless we are the collaborator or the owner of the repository.
|