On your server create the git repositories as bare repository
git init --bare repo.git
then, push the commits of your local repository
git push --mirror ssh://yourserver/~/repo.git
On your server create the git repositories as bare repository
git init --bare repo.git
then, push the commits of your local repository
git push --mirror ssh://yourserver/~/repo.git