How can I see what I am about to push with git?

前端 未结 14 2026
北恋
北恋 2020-11-27 09:06

Is there a way to see what would be pushed if I did a git push command?

What I\'m picturing is something like the \"Files Changed\" tab of Github\'s \"p

14条回答
  •  無奈伤痛
    2020-11-27 09:12

    Try git diff origin/master..master (assuming that origin/master is your upstream). Unlike git push --dry-run, this still works even if you don't have write permission to the upstream.

提交回复
热议问题