Git : Determine if branch is in a merge conflict state

后端 未结 3 793
离开以前
离开以前 2021-02-13 06:50

I am writing a bash script to do some automation. Part of the script involves navigating to a local repo, switching to the local master branch, then pulling the remote master to

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 06:58

    This lists files with a merge conflict:

    git diff --name-only --diff-filter=U
    

提交回复
热议问题