Partial git apply

前端 未结 3 2101
暗喜
暗喜 2021-02-12 15:40

How can I get git apply --index to not abort completely just because a single hunk fails? I have a 100K+ patch with dozens of files deleted and added, it\'d be a pa

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 16:29

    This is what I do,

    First, perform git apply --reject. Then run git add -p and select hunks interactively. Instead of add -p you can also use other git GUIs. For adding new files add them manually if not added.

提交回复
热议问题