문제

Is there a way to configure Git to give me an alert before or after I commit locally? For example, after I commit (ideally before), I get some kind of output like "Did you double check settings.py?". Alternatively, can I script this using bash? I've been looking around, but I haven't found much on the topic.. Thanks in advance!

도움이 되었습니까?

해결책

The pre-commit hook should give you the opportunity to do what you want.

See http://www.git-scm.com/book/en/Customizing-Git-Git-Hook. The example scripts contain good documentation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top