Gio Borje
Gio Borje

Reputation: 21104

Git Post-Receive Hook for Pushing from One Server to Another

I have a development server and a production server. All developers push updates to the development server and the development server pushes updates to the production server.

Is there a Post-Receive hook for doing this? Assume that the development server and production server names are dev1 and prod1.

If possible, is there a post-receive hook that checks for the tag stable before pushing to prod1?

Edit: Workflow example

Upvotes: 1

Views: 1497

Answers (2)

Adam Dymitruk
Adam Dymitruk

Reputation: 129564

You can do whatever you like in the hook. Push --tags and specify the one you want.

Upvotes: 0

Related Questions