git remote add origin git@github.com:username/new_repo git push -u origin master
$ git init # You're done! $ git remote add origin url_of_your_git_server # So that you can push your code somewhere.