git equivalent of svn status -u

后端 未结 7 951
无人及你
无人及你 2020-12-08 02:11

What\'s the git equivalent of svn status -u or more verbose svn status --show-updates. The svn status --show-updates command shows th

7条回答
  •  死守一世寂寞
    2020-12-08 02:44

    git fetch && git log --name-status ..origin/master does indeed show the logs that would be merged. However, it also pulls the changes. It's not technically possible to do the same exact thing as svn status -u, but git fetch is so fast that usually it shouldn't matter

    If you absolutely need the log before fetching, the only way would be to connect (SSH or equivalent) into the remote and issue git log there.

提交回复
热议问题