! [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. 推送操作不適合Dokku工作在Azure上
- 3. 推送操作-f與+
- 4. 推送操作:分支
- 5. 推送操作不會對服務器
- 6. 助推操作員如何工作?
- 7. 推不工作
- 8. ajax推送如何工作?
- 9. 推送通知不工作iphone4和iPhone3
- 10. IOS推送通知聲音不工作
- 11. 推送項目到Git不工作?
- 12. 推送數據到firebase不工作
- 13. 推送each_line到陣列不工作
- 14. 推送通知 - 聲音不工作?
- 15. 推送通知不工作迅速
- 16. Xamarin GCM推送通知不工作
- 17. Xamarin的iOS推送通知不工作
- 18. JSON推送不工作從ascx
- 19. 陣列推送不能正常工作
- 20. 推送通知不工作時
- 21. 使用較早的回購標記作爲推送主令不工作
- 22. 同步處理推送通知操作中的操作
- 23. 推力操作空主機陣列
- 24. Mongodb 3.2節點js $推不工作
- 25. 設置推送通知操作按鈕
- 26. 推送操作Heroku的錯誤
- 27. 推送通知操作按鈕
- 28. 科爾多瓦推送通知操作
- 29. 推送操作在詹金斯
- 30. 顯示前操作推送通知(APNS)
答案就在那裏的錯誤消息... – Thomas
我是GitHub的新手。 @Thomas –