Git创建新项目

服务端

$ mkdir myproject.git
$ cd myproject.git
$ git init --bare

本地

$ mkdir myproject
$ git init
$ git add *
$ git commit -m 'initial commit'
$ git remote add origin git@example.com:path/to/myproject.git # 为版本库添加名为origin的远程版本库
$ git push -u origin master # 推送

参考:http://www.worldhello.net/gotgithub/03-project-hosting/010-new-project.html