Why does -u mean remember for git push [-u]?

China☆狼群 提交于 2019-12-13 10:37:59

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!