While this option is still in the upper right corner, after opening the repository we are interested in, there is no well-known “fork” icon there. While the GitHub and GitLab web interfaces are quite similar to each other, Bitbucket differs significantly from them. On the other hand, it must be admitted that the GitHub documentation describes very clearly how we can deal with this and easily synchronize our local copy to be up to date with the original repo all the time. It is true that we have a button that allows us to do it manually, but it is a downside to the competing platform. However, the main difference is that GitHub by default does not provide the option of automatic synchronization between our and the original repository. The actual execution of fork works almost identically, so I won’t describe it. Anyway, just look at the icon for this option in GitHub:Īnd since I mentioned GitHub, I will tell you immediately how it works in this service. ![]() Wondering where the name Fork came from? The copies we create in this way can be visualized as a fork. You can read more about git clone operation, the Clone function and how to clone a repository here: Git clone vs backup.įork, on the other hand, differs in that it copies the entire repository, so to say, you create forked repositories, but on the server-side! And then this copy can be cloned and worked on it, completely separate and independent of the basic project. If we do Clone, we will just create a local copy of the repository, so to say – cloned repository, and all synchronization will take place between the base repo and our local copy. ![]() This will copy the entire project, just like the Clone function, but there is a fundamental difference between them. What is forking in Gitįork and clone… Is it the same? Actually forking in Git in short means copying a project. ![]() Let’s check how it works and what a forked repository is. This inspired me to describe a mechanism called forking in Git because a lot of people have heard of it, but when you need to delve into the details, it turns out that not everything is so obvious. How are they stored, how can you contribute to their development, and finally – who and how controls what the community adds to such a project. That was a lively debate and we wondered about how to cooperate in such projects, of course from the technical point of view. Recently I was talking to my friend about Open Source projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |