Closed (duplicate)
Project:
Git on Drupal.org
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2011 at 22:20 UTC
Updated:
15 Apr 2011 at 06:47 UTC
Hello,
I suggest to use -u option for git push command for initially push to repository. Like this:
git push -u origin master
instead of
git push origin master
The -u option do the follows:
For every branch that is up to date or successfully pushed, add upstream (tracking) reference, used by argument-less git-pull(1) and other commands.
So, after pushing my local branch with -u option, this local branch will be automatically linked with remote branch, and I can use git pull without arguments - this is more usefull.
Comments
Comment #1
eliza411 commentedYou wouldn't have seen this since it's in another queue, but it's a duplicate of #1081308: Include "-u" option in new branch instructions
Comment #2
andyceo commentedOhh... sorry. So, it is mean I subscribe to #1081308: Include "-u" option in new branch instructions :)