为什么-u表示记住git push [-u]? [英] Why does -u mean remember for git push [-u]?
本文介绍了为什么-u表示记住git push [-u]?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
手册中指出-u
将告诉git记住要推送到的位置.
In the manual it states that -u
will tell git to remember where to push to.
但是,我认为这是一个奇怪的缩写. -r
会更有意义.
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.
推荐答案
表示
--set-upstream
这意味着:
git push --set-upstream设置当前本地分支的默认远程分支.
git push --set-upstream sets the default remote branch for the current local branch.
(请参阅此答案)
这篇关于为什么-u表示记住git push [-u]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文