! [rejected] master -> master (fetch first) error: failed to push some refs to ' https://github.com/username/repo.git ': Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.推送操作主原點不工作
回答
有人正在與你在相同的存儲庫,他們已經做出了一些改變,你本地不具備,所以首先你需要做的
git pull origin master
如果之後解決衝突有任何和最後你可以做
git push origin master
謝謝,它解決了我的問題! :) –
You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again
拉第一,然後推到遠程因爲遙控器具有提交(S)中不存在本地。
$ git pull origin master
$ git push origin master
謝謝,它解決了我的問題! :) –
聽起來像你需要從遠程拉下工作。最順利的方式可能是git fetch
,然後是git rebase
或消息建議git pull
。前者將在遠程工作之上重做你的工作;後者將創建一個新的提交。
如果你一定你不關心遠程倉庫什麼的,你可以git push -f
,但它是一個危險的操作,其中,遠程會失去老態。
這表示在上一次抓取遠程存儲庫和推送時間之間合併了一些其他工作。也許是你合併或其他人的工作拉請求?
感謝您提供有用的信息,我是使用GitHub的新手。 –
- 1. 推送操作不工作
- 2. 拉推原子操作?
- 3. 推送操作不適合Dokku工作在Azure上
- 4. 推送操作不工作,沒有錯誤
- 5. 邊欄推送不工作
- 6. 推送在android不工作
- 7. Firebase推送通知操作
- 8. 推送操作-f與+
- 9. 推送操作:分支
- 10. 推送操作不會對服務器
- 11. 反應原生fcm推送通知操作事件
- 12. 操作不工作!=
- 13. 推不工作
- 14. 「混帳推Heroku的主人」 不工作
- 15. ajax推送如何工作?
- 16. 推送通知不工作ios 8.3?
- 17. 陣列推送不能正常工作
- 18. Xamarin的iOS推送通知不工作
- 19. 推送通知不工作iphone4和iPhone3
- 20. jQuery的推送(陣列)不工作
- 21. 推送通知不工作時
- 22. 推送通知 - 聲音不工作?
- 23. IOS推送通知聲音不工作
- 24. 推送通知不能正常工作
- 25. 解析推送通知不工作ios
- 26. 推送each_line到陣列不工作
- 27. Xamarin GCM推送通知不工作
- 28. 推送數據到firebase不工作
- 29. 推送通知使用ACS不工作
- 30. 推送通知不工作迅速
答案就在那裏的錯誤消息... – Thomas
我是GitHub的新手。 @Thomas –