+ 2
What is fork in VCS and how do I fork a repo?
3 Antworten
+ 3
Nice question! But fork is not something like a clone.
Imagine I have a game and you want to add a feature to it. If you cloned my repo directly to your computer, you can't push changes to my repo - because you don't have write access and you don't have PR feature.
But fork does a special work here. As I mentioned above after you forked a repo, a copy of that is available in your profile. Then you can clone that (the forked one) repo, make changes and pull to the forked repo. To submot changes to original one you can make a pull request and then the original repo owners have the ability to merge your work.
Hope you got it 😊
+ 4
Fork is a branch that contains a copy of another repo. People fork repos for purposes like creating pull request or developing the project individually. After forking most VCS give you the ability to create pull requests to the master branch of the source
In github you can fork a repo by clicking the fork button (which is situated in a top right place). After that you can see a copy of that repo in your profile
0
yes thank you