Skip to content

Instantly share code, notes, and snippets.

@roberto
Last active December 8, 2015 17:06
Show Gist options
  • Save roberto/d2ad320fee44381b29bc to your computer and use it in GitHub Desktop.
Save roberto/d2ad320fee44381b29bc to your computer and use it in GitHub Desktop.
[alias]
# keep working (it opens current changed files)
kw = !git status --porcelain --ignore-submodules | awk '$1 != "D" { print $2}' | xargs $EDITOR
# previous work (it opens changed files from previous commit)
pw = !git log -1 --raw | grep ^: | awk '$5 != "D" { print $6}' | xargs $EDITOR