Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:23
Show Gist options
  • Save ezhov-da/5748ffbe0363efc261797bbd7440a593 to your computer and use it in GitHub Desktop.
Save ezhov-da/5748ffbe0363efc261797bbd7440a593 to your computer and use it in GitHub Desktop.
git diff
https://stackoverflow.com/questions/3636914/how-can-i-see-what-i-am-about-to-push-with-git
<pre>
For a list of files to be pushed, run:
git diff --stat --cached [remote/branch]
example:
git diff --stat --cached origin/master
For the code diff of the files to be pushed, run:
git diff [remote repo/branch]
To see full file paths of the files that will change, run:
git diff --numstat [remote repo/branch]
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment