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

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

    See my answer in this similar question:

    How to preview git-pull without doing fetch?

    this goes to the ~/.gitconfig file:

    [alias]
            diffpull=!git fetch && git diff HEAD..@{u}
    

提交回复
热议问题