On Fri, Aug 17, 2012 at 11:43 AM, Konstantin Khomoutov <
flatw...@users.sourceforge.net> wrote:

> In my shop, we back up each Git repo on the main server to its mirror
> bare repository on another box using a call to `git fetch`:
> git fetch --quiet --prune <repo> '+refs/*:refs/*'
> which essentially means "bring everything the remote has, update
> matching local things (overwrite, if necessary), then delete everything
> the remote does not have anymore".

Aren't you just recreating `git clone --mirror`? If I remember, it will
automatically prune any deleted refs on the next fetch.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to