git - List files 'deleted by us' in merge conflict - Stack Overflow

I have some merge conflicts on files 'deleted by us', meaning some incoming changes target fi

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 badges
Add a comment  | 

1 Answer 1

Reset to default 2

But 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744740804a4591013.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信