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

后端 未结 7 1593
星月不相逢
星月不相逢 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:36

    You can get the effect you want by creating a new throw-away branch from your current one and doing the git pull there. If you're unhappy with the results, the original branch is intact.

提交回复
热议问题