为什么 -u 表示 remember for git push [-u]?
Why does -u mean remember for git push [-u]?
手册中说 -u
会告诉 git 记住要推送到的位置。
不过,我觉得这是一个奇怪的缩写。 -r
会更有意义。
它工作正常我只是想知道这些缩写是从哪里来的。
意思是
--set-upstream
这意味着:
git push --set-upstream sets the default remote branch for the current local branch.
(见this answer)
手册中说 -u
会告诉 git 记住要推送到的位置。
不过,我觉得这是一个奇怪的缩写。 -r
会更有意义。
它工作正常我只是想知道这些缩写是从哪里来的。
意思是
--set-upstream
这意味着:
git push --set-upstream sets the default remote branch for the current local branch.
(见this answer)