2

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
dsm
  • 63
  • 5

1 Answers1

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"

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @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