Skip to content

Instantly share code, notes, and snippets.

@vahotm vahotm/script.sh
Last active Dec 12, 2018

Embed
What would you like to do?
Write git diff into file on Desktop
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
You can’t perform that action at this time.