Monday, March 10, 2014

Check what you are about to push with git?

For a list of files to be pushed, run:

$ git diff --stat [remote/branch]

example:

$ git diff --stat 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]

No comments:

Post a Comment