June 20, 2020

Git Tips

Open vim tabs with changed files

vim -p `git diff --name-only`

vim -p

   -p[N]       Open N tab pages.  When N is omitted, open one tab page for each file. 

git diff --name-only

 --name-only
     Show only names of changed files.