4 ms·
Why the -u on push?
by nicky0 15y ago
Why the -u on push?
- _ikke_ 15y agoIt creates a tracking branch, and so git knows how far a branch is relative to a remote branch.
- deleted 15y ago[deleted]
- Kwpolska 15y ago-u, --set-upstream For every branch that is up to date or successfully pushed, add upstr eam (tracking) reference, used by argument-less git-pull(1) and other commands. For more information, see branch.<name>.merge in git-config (1). --man git-push
- shennyg 15y agoIt allows you to use `git pull/push' without specifying the remote. see: http://mislav.uniqpath.com/2010/07/git-tips/ http://mislav.uniqpath.com/2010/07/git-tips/ Section "Push a branch and automatically set tracking"