Is there a “git pull --dry-run” option in Git?

后端 未结 7 1594
星月不相逢
星月不相逢 2021-01-29 22:43

Is there such a thing as git pull --dry-run to see how stuff will be merged before it messes up my working tree?

Right now I am doing:

git f         


        
7条回答
  •  忘掉有多难
    2021-01-29 23:20

    Since pulling implies merging, I'd go with running git merge --abort if your script detects there were any conflicts and merging failed.

提交回复
热议问题