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

eliza411’s picture

Status: Active » Closed (duplicate)

You 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

andyceo’s picture

Ohh... sorry. So, it is mean I subscribe to #1081308: Include "-u" option in new branch instructions :)