How do you move your Git repository from one server to another?

I need to move Git to a new location and was wondering if there's a way to just rsync my git repository to a new location?


rsync, or just clone, as git clones are complete copies of (the reachable parts of) the source repository.


You can use

git remote add servername master
git push servername master

Replace servername by you new git repository