Skip to content

Instantly share code, notes, and snippets.

@miyataka
Created July 13, 2023 06:43
Show Gist options
  • Save miyataka/0c947c0467256abce99c83db0be82a3c to your computer and use it in GitHub Desktop.
Save miyataka/0c947c0467256abce99c83db0be82a3c to your computer and use it in GitHub Desktop.
open files of showed by `git status|diff` by vim
# open all modified files
function gsv() {
vim $(git status --porcelain | awk '{print $2}')
}
function gdv() {
vim $(git diff $1 --name-only)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment