git上是否存在重新启动后的挂钩?

编程入门 行业动态 更新时间:2024-10-09 20:22:54
本文介绍了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上是否存在重新启动后的挂钩?

本文发布于:2023-10-17 09:23:55,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重新启动   是否存在   git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!