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
Use git gui
, there you can see a list of what changed in your actual commit. You can also use gitk
wich provides an easy interface for reflogs. Just compare between remotes/...
and master
to see, what will be pushed. It provides an interface similar to your screenshot.
Both programs are included in git.
After git commit -m "{your commit message}"
, you will get a commit hash before the push.
So you can see what you are about to push with git
by running the following command:
git diff origin/{your_branch_name} commit hash
e.g: git diff origin/master c0e06d2