Closed vb186017 closed 9 years ago
:+1:
@vb186017 So, -u
is short for --set-upstream
-- it creates a link between your local branch and the remote branch you are pushing to, so in the future, git pull
and git push
(without any other parameters) will, by default, continue to pull/push from the remote branch specified.
In this case, git push -u origin B1
is saying "push branch B1
to the remote origin
using the same B1
name in both places and make it so that future push/pull commands on B1
(or pulls) also go to origin/B1
"
So basically my second "git push" ideally pushed to master?
So basically my second "git push" ideally pushed to master?
If you were following the steps you describe here, and were checked-out to B1
when you did a git push
, you pushed to B1
, not to master
.
I think my push command lead to push conflict. Here are the steps I followed:
Can you please provide more explanation on this?