Skip to contentSkip to conversation

Replication of shared repositories

DISCUSSION cdossantos 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

cdossantos

author
#0 lore raw

Hello,

I would like to replicate the contents of my GIT shared repository to another server, a sort of mirror, but i didn't find any references about that. I know that hook scripts run locally. However, could i have a post commit script that after a local commit, not only starts a push to the shared repository but starts as well a push from the shared repository to another server ?

Thanks in advance,

Santos

Signature · 2 lines
View this message in context: http://n2.nabble.com/Replication-of-shared-repositories-tp4894649p4894649.html
Sent from the git mailing list archive at Nabble.com.
#1 lore raw
Quoted 3 lines

I would like to replicate the contents of my GIT shared repository to another server, a sort of mirror, but i didn't find any references about that.

Just push to two different remotes.

Quoted 4 lines

I know that hook scripts run locally. However, could i have a post commit script that after a local commit, not only starts a push to the shared repository but starts as well a push from the shared repository to another server ?

I suppose you could do this.

-- Ram