Skip to content

Instantly share code, notes, and snippets.

@nafeu
Last active September 18, 2020 15:10
Show Gist options
  • Save nafeu/f4699e6872431fefee44bcfd8e99a6f1 to your computer and use it in GitHub Desktop.
Save nafeu/f4699e6872431fefee44bcfd8e99a6f1 to your computer and use it in GitHub Desktop.
Open Changed Or Modified Files With Git
$EDITOR `echo $(git diff --name-only HEAD~ HEAD) $(git status --porcelain | awk '{print $2}')`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment