git上是否存在重新启动后的挂钩? [英] Is there a hook on git for post-reset?

查看:108
本文介绍了git上是否存在重新启动后的挂钩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些本地文件,所有开发人员都必须更改。我将这些文件标记为假定不变,但这并不妨碍它们在重置时发生变化。



如果不是,有人建议如何处理这种情况吗?

解决方案

您可以找到 Git hooks here b


  • applypatch-msg

  • pre-applypatch

  • post-applypatch

  • 预先提交

  • prepare-commit-msg

  • 提交msg

  • 提交后

  • 预先转换

  • post-checkout

  • 合并后

  • 预先接收

  • 更新
  • $
    $ b


  • pre-auto-gc

  • 后重写



其中没有后期重置钩子。 / 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上是否存在重新启动后的挂钩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆