Restart/undo conflict resolution in a single file

前端 未结 2 1826
时光说笑
时光说笑 2020-12-02 04:34

In a larger git merge with several conflicting files, I incorrectly marked a file as resolved (using git add FILE after some editing)

Now I\'d like to u

2条回答
  •  孤城傲影
    2020-12-02 05:13

    git reset HEAD FILE
    

    Example

    $ git status
    # On branch master
    # Changes to be committed:
    #   (use "git reset HEAD ..." to unstage)
    

提交回复
热议问题