美文网首页
git pull fatal

git pull fatal

作者: magic_fake | 来源:发表于2016-10-14 21:56 被阅读21次

In first day for using git ,I met a problem:

Git Pull Failed,

fatal: refusing to merge unrelated histories

which means i cannt pull directly.

so i search for some materials.

now i copy the code below:

git pull origin master -–allow-unrelated-histories

git add .

git commit

then we are in VIM.

come to input:按i键

exit from output:Esc键 —— Shift+;键 —— wq!(保存并退出)或q!(不保存退出) —— Enter

then type:

git push origin master

successfully we solve the problems!

referance:

[fatal solve](http://blog.csdn.net/a10615/article/details/52135617
http://www.jianshu.com/p/q81RER/)
markdown in jianshu(easy to understand)

相关文章

网友评论

      本文标题:git pull fatal

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