git hook for git stash apply?

♀尐吖头ヾ 提交于 2019-12-24 08:49:39

问题


Is there a git hook that gets applied after I run git stash apply? If so, what is it? More generically, is there a single commit hook that gets run after a merge,rebase,stash, etc. Basically any time a file changes due to a git operation. In lieu of a single hook, I'd accept a list of hooks for the following: post merge, post rebase, post checkout, post stash apply.


回答1:


Doesn't look like there is one for git stash apply. Most tend to occur on actual commits, pushes, or updates..not to changes in the working tree. This list may help:

  • git merge : post-merge
  • git rebase : post-rewrite (also runs on git commit --amend)
  • git checkout : post-checkout

Source: githooks(5)



来源:https://stackoverflow.com/questions/21117814/git-hook-for-git-stash-apply

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!