Browse Source

Add tips to review list of edited files since dev

DricomDragon 3 năm trước cách đây
mục cha
commit
087846811c
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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