3
我有一個master
分支和another_branch
其中有兩倍的文件。我有兩個不同內容的git分支。爲什麼不能混合它們?它說「已經是最新的」。
如何當我git checkout master
然後git merge another_branch
它說Already up-to-date.
並沒有將額外的文件合併到master
?
(是的,我已經同時具有another_branch
簽出完成git add .
。git commit
說,有什麼可提交。)
編輯:master
分支有文件,並且another_branch
分支有相同的文件加上更多。爲什麼不將這些額外的文件合併?
編輯:我解決了這個問題,通過將文件從another-branch
複製到外部文件夾,檢出master
,從外部文件夾中複製文件,並添加所有新文件,並提交一個新的提交。
想想吧,我認爲如果我在another_branch
做了一個小小的改變,然後提交,我可以將所有東西都合併到master中,但我沒有嘗試過。
git commit說「沒有提交」。 – trusktr 2012-03-18 21:26:37
您在提交時是否在master分支或another_branch上? – ralphtheninja 2012-03-18 21:27:42
我試過在兩個分支上提交,他們都說「沒有提交」。 – trusktr 2012-03-18 21:51:19