Jelajahi Sumber

Add tips to review list of edited files since dev

DricomDragon 3 tahun lalu
induk
melakukan
087846811c
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      Guides/git.md

+ 8 - 0
Guides/git.md

@@ -62,6 +62,14 @@ See **config** for setting his own git tool for diff.
 
 `git push --delete <remote_name> <branch_name>` delete a remote branch
 
+### Review every files edited on your branch
+
+`git diff dev --numstat | cut -f 3 | sed -e 's/{.* => \(.*\)}/\1/g'` show every modified files since dev
+
+`grep -e 'TODO' (git diff dev --numstat | cut -f 3 | sed -e 's/{.* => \(.*\)}/\1/g')` show every TODO in modified files
+
+`vim (git diff dev --numstat | cut -f 3 | sed -e 's/{.* => \(.*\)}/\1/g')` open every file in your text editor
+
 ## GitAhead
 
 Open-source cross-platform Git GUI