Skip to content

Instantly share code, notes, and snippets.

@byteface
Last active September 29, 2024 15:16
Show Gist options
  • Save byteface/a459781d7f742d046a2faa833677da86 to your computer and use it in GitHub Desktop.
Save byteface/a459781d7f742d046a2faa833677da86 to your computer and use it in GitHub Desktop.
Git in Russian
# 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
}
@byteface
Copy link
Author

TODO - I doubt -h for help will work as it always seems to require a command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment