这个问题呢 是因为 你github中的文件与本地git Bash的文件不相匹配
像我 就是 因为少了Readme这个文件 所有在 git push -u 的时候 就出现了
![](https://img.haomeiwen.com/i9161301/441a7ef751f607b1.png)
这种情况
这种情况也挺好解决的
首先输入命令 git pull --rebase origin master
但是如果报错
![](https://img.haomeiwen.com/i9161301/935789c59bb9d910.png)
就先按提示中所写
输入命令 git stash
![](https://img.haomeiwen.com/i9161301/a9b4498f7f480ccc.png)
再 输入命令 git pull -- rebase 即可
![](https://img.haomeiwen.com/i9161301/592b3a9cee6ffeaf.png)
这个问题呢 是因为 你github中的文件与本地git Bash的文件不相匹配
像我 就是 因为少了Readme这个文件 所有在 git push -u 的时候 就出现了
这种情况
这种情况也挺好解决的
首先输入命令 git pull --rebase origin master
但是如果报错
就先按提示中所写
输入命令 git stash
再 输入命令 git pull -- rebase 即可
本文标题:git Bash 中遇到 error: failed to pu
本文链接:https://www.haomeiwen.com/subject/yseaixtx.html
网友评论