Cloning a repository without making it the origin remote
I'm cloning a git repository from a computer that's going to be wiped. Is it possible to clone a repository without making the original repository origin/master ? Or do I need to clone it, and then delete the remote branch (which is done with git remote rm origin )? Edit : The repository has only one branch, and no tags. It is not necessary to make the original repository the "origin" remote to clone the master branch. On the new machine, create a new repository: git init foo Then pull the old repository into the new one, without creating a remote: cd foo git pull <reference to old repository>