git学习第六篇《使用遇到的问题汇总》

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mdjxy63/article/details/88917427

Q1:并解决“您的配置中指定要合并远程的引用 'refs/heads/master'”问题

方法1:https://www.jianshu.com/p/ad9cf1e25772

config文件,对,就是编辑她。

她默认是这个样子

我们给她加点东西

对,就是加上一句这个东西

[receive]

        denyCurrentBranch = ignore

扫描二维码关注公众号,回复: 5886461 查看本文章

方法2: https://blog.csdn.net/qq_30581017/article/details/79004665

step1:查看所有的远程 仓库的分支:git branch --all

step2:

如果您想要为此分支创建跟踪信息,您可以执行: 
git branch –set-upstream-to=origin/master

step3:git pull

猜你喜欢

转载自blog.csdn.net/mdjxy63/article/details/88917427