Copies a remote in a local git repo, to snapshot its commit IDs and preventing them from being GCed