Last active
September 29, 2024 15:16
-
-
Save byteface/a459781d7f742d046a2faa833677da86 to your computer and use it in GitHub Desktop.
Git in Russian
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 characters
# Add to .zprofile: | |
# i.e. лох ветка -r | |
# i.e. лох статус | |
лох() { | |
case "$1" in | |
"добавь") shift; git add "$@";; | |
"коммит") shift; git commit "$@";; | |
"извлечение") shift; git pull "$@";; | |
"отправка") shift; git push "$@";; | |
"журнал") git log "$@";; | |
"статус") git status "$@";; | |
"ветка") shift; git branch "$@";; | |
"изменение") shift; git diff "$@";; | |
"слияние") shift; git merge "$@";; | |
"клонировать") shift; git clone "$@";; | |
"история") git reflog "$@";; | |
"тег") shift; git tag "$@";; | |
"удаление") shift; git rm "$@";; | |
"перемещение") shift; git mv "$@";; | |
"проверка") shift; git checkout "$@";; | |
"показать") shift; git show "$@";; | |
"реверсия") shift; git revert "$@";; | |
"фетч") shift; git fetch "$@";; | |
"исправление") shift; git reset "$@";; | |
"сохранить") shift; git stash "$@";; | |
"восстановить") shift; git stash pop "$@";; | |
"проверить-ветку") shift; git checkout -b "$@";; | |
*) echo "Неизвестная команда: $1";; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO - I doubt -h for help will work as it always seems to require a command.