git Bash 中遇到 error: failed to push some refs to 'https://github.com/12Dong/recruit-analysis.git'

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

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

git Bash 中遇到 error: failed to push some refs to 'https://github.com/12Dong/recruit-analysis.git'_第1张图片
image.png

这种情况

这种情况也挺好解决的

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

但是如果报错


image.png

就先按提示中所写

输入命令 git stash

image.png

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

git Bash 中遇到 error: failed to push some refs to 'https://github.com/12Dong/recruit-analysis.git'_第2张图片
image.png

你可能感兴趣的:(git Bash 中遇到 error: failed to push some refs to 'https://github.com/12Dong/recruit-analysis.git')