4
Как создать персонализированный шаблон сообщения фиксации?Custom Git Commit Message Template
Я хотел бы иметь что-то вроде:
# Short (50 chars or fewer) summary of changes
# More detailed explanatory text
Как создать персонализированный шаблон сообщения фиксации?Custom Git Commit Message Template
Я хотел бы иметь что-то вроде:
# Short (50 chars or fewer) summary of changes
# More detailed explanatory text
Добавить следующие строки в ~/.gitconfig
:
[commit]
template = ~/.git-commit-message
Создать ~/.git-commit-message
файл с следующим содержанием:
# Short (50 chars or fewer) summary of changes
# More detailed explanatory text
Реф. commit.template в http://git-scm.com/docs/git-config