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
//www.greatytc.com/p/q81RER/)
markdown in jianshu(easy to understand)