When forking, you create a new repository (identical to the original). To fork a repository means that you create a copy of the repository on a Git hosting service (e.g. When you clone a repository, you are able to make, commit and push changes made to your local copy. When cloning, you download all the files, folders, along with the commit history, the branches, on your local computer. To clone a repository means that you create a copy of the full repository on your computer. Difference Between Cloning and Forking a RepositoryĬloning and forking are two ways to copy a Git repository, but have different purposes. Clone a branch using the “git clone -b ” command. Cloning a specific branch: Create a copy of a single branch of a Git repository.Exporting: Create a copy of a Git repository in a non-Git format. Use archiving to create backups or to share to non-git users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |