美文网首页
git Bash 中遇到 error: failed to pu

git Bash 中遇到 error: failed to pu

作者: 12Dong | 来源:发表于2017-12-13 11:55 被阅读0次

这个问题呢 是因为 你github中的文件与本地git Bash的文件不相匹配

像我 就是 因为少了Readme这个文件 所有在 git push -u 的时候 就出现了

image.png

这种情况

这种情况也挺好解决的

首先输入命令 git pull --rebase origin master

但是如果报错


image.png

就先按提示中所写

输入命令 git stash

image.png

再 输入命令 git pull -- rebase 即可

image.png

相关文章

网友评论

      本文标题:git Bash 中遇到 error: failed to pu

      本文链接:https://www.haomeiwen.com/subject/yseaixtx.html