2
我在分支跑git merge master --no-commit
和給定的唯一輸出是這樣的:git中的「automerged」文件是什麼,你如何列出它們?
Auto-merging path/to/file
Automatic Merge went well; stopped before committing as requested
然而,git diff HEAD --name-status
表明,大約有15個文件即其中修改(前綴「M」)和3個文件中加入其(以'A'爲前綴)。是不是全部從被認爲是「Automerged」的合併中修改的文件?那麼這個特定的文件有什麼特別之處,它會打印爲「automerged」而不是其他文件?
更多的信息(這是我犯了前合併):
$ git log --oneline --graph --decorate --all
* ae3f058 (master) synced code from another source.
| * 3bd4147 (HEAD, branchA) blah blah blah
| * f6513f6 random message
| * fcbe65e more messages from commit history
| * 6bc99e2 I like green eggs and ham
|/
| * 1824723 (branchB) This is some other, unrelated branch.
|/
* 5a98fac some stuff right before branching
* 40b05f1 initial commit.