How to update a git clone --mirror?
I have created a git repository to mirror a live site (which is a non-bare git repository): git clone --mirror ssh://user@example.com/path/to/repo Now, to keep this mirror clone updated with all changes from its remote origin, which command or commands I must use? I'd like to keep everything updated: commits, refs, hooks, branches, etc. Thanks! This is the command that you need to execute on the mirror: git remote update J. Bruni Regarding commits, refs, branches and " et cetera ", Magnus answer just works ( git remote update ). But unfortunately there is no way to clone / mirror / update the