- Create a fresh bare repository on the server:
git init --bare newrepo.git - Add it as a remote in your local repo:
git remote add newrepo git://[email protected]/newrepo.git git push newrepo masterto push a particular branch, or
git push --all newrepoto push all branches