本文介绍了git上是否存在重新启动后的挂钩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些本地文件,所有开发人员都必须更改。我将这些文件标记为假定不变,但这并不妨碍它们在重置时发生变化。
如果不是,有人建议如何处理这种情况吗?
解决方案您可以找到 Git hooks here : b
其中没有后期重置钩子。 / p>
I have some local files that all developers have to change. I marked the files as "assume unchanged" but that doesn't keep them from changing when doing a reset. Is there a hook on git that's executed after git reset?
If not, does anybody have a suggestion on how to handle this situation?
解决方案You can find a list of Git hooks here:
- applypatch-msg
- pre-applypatch
- post-applypatch
- pre-commit
- prepare-commit-msg
- commit-msg
- post-commit
- pre-rebase
- post-checkout
- post-merge
- pre-receive
- update
- post-receive
- post-update
- pre-auto-gc
- post-rewrite
There is no post-reset hook among them.
更多推荐
git上是否存在重新启动后的挂钩?
发布评论