问题
In the manual it states that -u
will tell git to remember where to push to.
However, I think this is a strange abbreviation. -r
would make more sense.
It works fine I'm just wondering where these abbreviations come from.
回答1:
it means
--set-upstream
and that means:
git push --set-upstream sets the default remote branch for the current local branch.
(see this answer)
来源:https://stackoverflow.com/questions/34862779/why-does-u-mean-remember-for-git-push-u