每次我拉,當有什麼我需要得到的,我總是得到這個消息。請記住,我的開發分支上沒有什麼是新的。我正在更新,因爲其他人已經提交了提交。Git拉總是導致提交視圖。不適合同事
Merge branch 'development' of github.com:blahblah/blah
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~
~
~
~
當我的同事跑他們的時候,沒有。他們從我身上看到它,並說「那很奇怪......」。
我想:
git config --global --add merge.ff false
這沒有奏效。
任何想法?
你確定沒有任何unpushed local commitits?你嘗試過'git pull --rebase'嗎? –
我的基本分支上幾乎沒有任何東西。我只是將我的異步分支更新爲「獲取最新版本」。但它總是拋出這個信息。 –
將一個額外的'merge.ff'設置爲'false'只會加劇這種情況。 (你可能已經將它設置爲false)我建議絕對不要使用'git pull'。將它分解爲它的組件命令:'git fetch',然後選擇第二個命令,'git merge'或'git rebase'。你可能想要檢查你的全局配置('git config --global --edit')並移除任何合併設置,然後對你的每個版本庫配置('git config --edit')進行相同的操作。 (避免'git pull'只是一個建議,不是固定配置的一部分。) – torek