1. 程式人生 > >操作Git中出現的問題,記錄

操作Git中出現的問題,記錄

detail pda epo 代碼 contains 出現 error: other 再次

錯誤一:error: failed to push some refs to ‘[email protected]:....." Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to

解決方法:1,先拉取下來

      git pull origin master

     2,再上傳

      git push -u origin master

錯誤二:error:failed to push some refs to ‘https://github.com/..git‘ Updates were rejected because the tip of your current branch is behind its remote counterpart. Merge the remote changes(e.g. ‘git pull‘) before pushing again.See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.

解決方法:git push -u origin master -f;(我個人是再次拉取代碼居然拉下來了)

(不斷更新。。。。)

操作Git中出現的問題,記錄