Suppose I have cloned a Git repository to my local disk using:
git clone username@git.example.com:someproject.git
Now suppose that git.example.com
is not being backed up, and it goes down in a blaze of glory. Does my clone contain everything necessary to rebuild the remote repo that was lost? The Ultimate Backups section of Git Magic suggests that the answer is "yes," but it isn't clear to me.
Note that I'm not asking "is my local clone a sufficient backup of the master
branch?" I'm asking whether my local clone can be considered a complete backup of everything that was contained in the remote repo; all branches, all tags, everything. For example, what about remote branches that aren't tracked in the local repo?
To futher confuse the issue, the existence of git clone --mirror
suggests to me that my local clone should not be considered a complete backup of the remote repo.