Copies a remote in a local git repo, for the purpose of snapshotting its commit IDs and preventing them from being garbage-collected