Git push 失敗原因總結
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
在git push 是提示的錯誤,然後解決了
有時候往GitHub上提交東西的時候會因為remote repository上有東西更新了但是local
repository 沒有更新而造成提交失敗,此時需要git pull origin master,這樣就會出現一個小黑框
要求你輸入為何要merge兩者:press "i"->write your merge message->press "esc"->write
":wq"->then press enter,就可以繼續回到輸入命令的小黑框介面了。