該問題似乎是一個非常標準的問題,造成遠程分支和本地CSS文件之間的差異,我推着git。Git分離頭後拉/推失敗
我收到標準錯誤消息「更新被拒絕,因爲當前分支的尖端在後面」。好的別擔心。我使用了一個git pull origin master
,然後 - 在拉動後 - 移動到我的git push上。
推送成功到主分支沒有錯誤消息。思考一切是偉大的,然後我用git push heroku master
,只收到一個錯誤推到Heroku的時候:
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我感到困惑,因爲我看到的是,工作目錄是通過git status
乾淨(大概的頭部附後) ,但Heroku推繼續指出遠程/本地文件中存在衝突。
對於Heroku,我需要做什麼來識別衝突的任何想法都已經解決了,就像我對Git所做的一樣?
編輯:我忘了分享一個細節。我已經使用git checkout master
來確認我在主分支上,所以我們絕對在那裏。
'git diff heroku/master'會顯示你的區別。 –
爲什麼標題中提到「脫離頭部」,而你的消息根本就不談這個?看起來你有兩個遙控器(起源和英雄),你從原點拉出,你試圖推動heroku,這是領先的。 –