Reputation: 649
I have a few questions about 'forking' a repo in which I am slightly confused about it, even after reading the documentations. Really appreciated if someone could guide me through and pardon me my english and understanding in Git.
I am using Atlassian, and say I am going to copy this repo called 'testProj' which is under the projects called 'allProjects'
allProjects/testProj
. In the 'forked' repo, it appeared as / - guest01/testProj
, so does this means that it is using my username as the project name, while containing the new repo?ssh://git@stash/~guest01/testProj.git
will it affects in the future, if I did a git pull
or git fetach -all
to update the branches whether or not in the first place did I enable or not enable the Enable Fork Syncing
option?Upvotes: 1
Views: 106
Reputation: 1329082
First, can I do a fork through terminal commands, like git clone etc? Otherwise is it only do-able through the web ui?
Yes, it is a clone on the server side, so it is an operation only started through the server web ui.
From my understanding via their docs, supposedly I have created the fork as stated, will the creator of that repo be notified with email etc.?
No
guest01/testProj, so does this means that it is using my username as the project name, while containing the new repo?
A fork is done under a user account to allow that user to clone/pull/push a repo he/she would otherwise not be permitted to contribute back to (push back).
Should I git clone the repo in my usernam
If you don't select fork syncing, then you would need to add a reference to the original repo (usually named "upstream") and do a fetch upstream yourself, rebasing your work on top of the updated upstream remote tracking branches.
See "Pull new updates from original Github repository into forked Github repository" as an example of a manual sync.
The fork syncing mechanism does all that for you.
Upvotes: 1