Last active
January 27, 2021 10:50
-
-
Save Xitsa/7203ff562faa2c703a3e30b62dba96ae to your computer and use it in GitHub Desktop.
Revisions
-
Xitsa revised this gist
Jun 25, 2020 . No changes.There are no files selected for viewing
-
Xitsa created this gist
Jun 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ [alias] xdiff = "!f() { \ git diff "$@" $(git ls-files --modified --exclude-standard | fzf -m); \ }; f" xadd = "!f() { \ git add "$@" $(git ls-files --modified --others --exclude-standard | fzf -m); \ }; f" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ Пара дополнительных команд, которые позволяют уменьшить время на манипуляции с изменёнными файлами в git при работе только с клавиатуры. Когда я хочу посмотреть какие-то изменения, я вбиваю команду `git xdiff`, набираю часть символов, а дальше либо один файл по вводу или табом выбираю несколько. Когда хочу внести изменения в индекс, я вбиваю команду `git xadd` или `git xadd -p` и аналогично выбираю файлы информацию о которых хочу добавить в индекс.