I have 2 Git repository. After push in my main repository automatically pulling another (by hook). What command can help me run external application for doing additional work?
Asked
Active
Viewed 288 times
1 Answers
2
A post-merge
hook should run after a git pull
.
Make sure to avoid the issues mentioned in "git windows post pull" or "git hook post-merge - error: cannot run".
You have an example of "additional work" in "Git post-merge
hook to auto-fire rails migrations"
-
@dsm you mean you don't know how to define a post-merge hook? http://stackoverflow.com/questions/3563904/git-hook-post-merge-error-cannot-run illustrates that. – VonC Jul 27 '12 at 07:11
-
need run c:\ttt.exe. What need write on hook body? – dsm Jul 27 '12 at 07:13
-
@dsm: just `#!/bin/sh` followed by `/c/ttt.exe`: unix-style. See http://stackoverflow.com/questions/6286982/git-windows-post-pull – VonC Jul 27 '12 at 07:21