Алиасы команд в Git#
Мои алиасы#
Просто выполнить в терминале:
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.cim "commit -m"
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.histt "log --pretty=format:'%h %cd | %s%d [%an]' --graph --date=iso"
git config --global alias.ad "add -A"
Пример использования:
Создание алиасов#
Вывести список алиасов#
Удаление алиасов#
Вопрос на StatckOverflow