Last active
December 12, 2018 15:12
-
-
Save vahotm/9d61a44d0069db5576087292eb463066 to your computer and use it in GitHub Desktop.
Write git diff into file on Desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-parse --git-dir 1>/dev/null && git add -N . && git diff > "${HOME}/Desktop/$(basename $(git rev-parse --show-toplevel))_$(date '+%d-%m-%Y_%H-%M-%S').diff" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment