Skip to content

Instantly share code, notes, and snippets.

@yaymukund
Created June 1, 2012 22:44
Show Gist options
  • Save yaymukund/2855547 to your computer and use it in GitHub Desktop.
Save yaymukund/2855547 to your computer and use it in GitHub Desktop.
# `git touch` will touch all files you've modified since you
# branched, including uncommitted stuff. You can use this to
# trigger tests when Guard is watching.
[alias]
touch = !sh -c 'touch $(git diff $(git merge-base master HEAD) HEAD --name-only --format="format:")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment