Skip to content

Instantly share code, notes, and snippets.

@tmastny
Last active April 22, 2020 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmastny/e306ea7aa862413bf9b344b53ce1425f to your computer and use it in GitHub Desktop.
Save tmastny/e306ea7aa862413bf9b344b53ce1425f to your computer and use it in GitHub Desktop.
Open files that were modified or are new to current branch
# also works with sublime (subl)
code $(git diff --name-only master)
# relative is also useful depending on your working directory
code $(git diff --relative --name-only master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment