Псевдоним git stash poop to pop? Это, по общему признанию, глупый вопрос, но я честно не знаю, возможно ли это. Я часто ошибаюсь "git stash pop" (неважно, почему). Могу ли я отображать/сокращать/псевдонимы моей опечатки на то, что она должна быть? Ответ 1 git config --global alias.sp 'stash pop' то git sp расширяется до git stash pop Ответ 2 Определите функцию оболочки: git() { if [ "$1" == "stash" -a "$2" == "poop" ]; then shift; shift; command git stash pop "[email protected]" else command git "[email protected]" fi }
Ответ 2 Определите функцию оболочки: git() { if [ "$1" == "stash" -a "$2" == "poop" ]; then shift; shift; command git stash pop "[email protected]" else command git "[email protected]" fi }