相关疑难解决方法(0)

Git - push.default"匹配"和"简单"之间有什么区别

我一直在使用git一段时间,但我自己从来没有设置过新的远程仓库,我一直很好奇这样做.我一直在阅读教程,我对如何让"git push"工作感到困惑.

如果我只是用git push它要求我查看默认分支(?)指向?它为我提供的这两个选项有什么区别?

git config --global push.default matching
git config --global push.default simple
Run Code Online (Sandbox Code Playgroud)

匹配只是推动我在本地仓库上的任何分支,如果它们不匹配,我必须手动告诉它推送我所拥有的任何新的本地分支,对吗?这是最好的做法还是最简单的?

git git-pull git-push git-remote

275
推荐指数
3
解决办法
10万
查看次数

标签 统计

git ×1

git-pull ×1

git-push ×1

git-remote ×1