0

Is it possible to use GIT hooks in .git/hooks/ with Stash?

It would like to know if I can write a simple shell/perl script for the post-commit hook to be run by the server on a git push. It should check out a branch to another location.

Jijo John
  • 1,368
  • 2
  • 17
  • 31

1 Answers1

1

You should probably have a read of the Stash documentation about repository hooks:

https://confluence.atlassian.com/display/STASH/Using+repository+hooks

This plugin/hook may also be of interest:

https://marketplace.atlassian.com/plugins/com.ngs.stash.externalhooks.external-hooks

charleso
  • 1,816
  • 14
  • 12