admin管理员组文章数量:1391960
I have some merge conflicts on files 'deleted by us', meaning some incoming changes target files that I previously deleted. Is there some way in git to list these files (with the intent to git rm
on them later)?
I tried
git diff --name-only --diff-filter=D
But it seems to only account for incoming changes which delete files, not deleted files on our side that are targeted by incoming changes.
I have some merge conflicts on files 'deleted by us', meaning some incoming changes target files that I previously deleted. Is there some way in git to list these files (with the intent to git rm
on them later)?
I tried
git diff --name-only --diff-filter=D
But it seems to only account for incoming changes which delete files, not deleted files on our side that are targeted by incoming changes.
Share Improve this question asked Mar 12 at 16:21 gladesglades 4,9882 gold badges22 silver badges64 bronze badges1 Answer
Reset to default 2But it seems to only account for incoming changes
That's because that's the diff you asked to see. To see changes already in the local side of the merge do git diff MERGE_HEAD...
(three literal dots, see the docs) with whatever options you like.
本文标签: gitList files 39deleted by us39 in merge conflictStack Overflow
版权声明:本文标题:git - List files 'deleted by us' in merge conflict - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744740803a2622594.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论