How would another contributor access these branches? To get started I suppose it's git clone, but can you git clone later too when you already have and old version of the repo? Or do you manually create branches locally and then pull those?
Think about this in terms of remote vs. local. Any branch that is local can only be accessed by the person who has created it. Once that person pushes it up to the remote repository, it is now accessible by all those who can see the remote repository.
The git clone
command should only be done once, at the very beginning. If you want to grab updates later, you would use the git pull
command, which is a combination of git fetch
and git merge
.
**Why is it that you have to specify what branch you are pushing to? I mean it seems a lot safer to automatically push the current branch to the remote branch with the same name (is there any way to do that, so that when I push my feat1 branch it will be pushed to the remote feat1 branch, without risking pushing master