2

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
  • 1
    There is not; but git stash is a shell script, so you could easily modify it to add your own. Commented Jan 14, 2014 at 23:11

1 Answer 1

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:

Source: githooks(5)

Sign up to request clarification or add additional context in comments.

1 Comment

I just tried a git stash apply with a post-merge hook (since there was a chance that git-stash ran by applying a merge). No luck though.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.