Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open all modified files with git?

Tags:

git

bash

vim

awk

How to open all deleted, modified, and created files since the last git commit, I tried using git status first, but it was difficult to parse, so I found git status --porcelain was easier to parse and with awk + vim + some bash magic it was easy to do.

like image 516
Dorian Avatar asked Feb 02 '15 15:02

Dorian


1 Answers

So, I found the solution with vim:

vim $(git status --porcelain | awk '{print $2}')

And I post this question + answer just to answer it myself and share it to the internet

like image 157
Dorian Avatar answered Sep 19 '22 08:09

Dorian