Does git have anything like `svn propset svn:keywords` or pre-/post-commit hooks?

后端 未结 5 2003
一整个雨季
一整个雨季 2020-12-05 22:30

Browsing through the git documentation, I can\'t see anything analogous to SVN\'s commit hooks or the \"propset\" features that can, say, update a version number or copyrigh

5条回答
  •  死守一世寂寞
    2020-12-05 23:11

    Git does have pre-commit and post-commit hooks, they are located inside each .git/hooks directory. Just modify the files and chmod them to make them executable.

提交回复
热议问题