hint: Updates were rejected because the remote contains work that you do
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: 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,就可以继续回到输入命令的小黑框界面了。