创建一个新的repository,下载到本地
git clone git地址
cd 需要创建应用的目录
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
上传一个本地已有的应用到服务器中一个已有的目录
cd 本地已有的目录
git init
git remote add origin 已有的git地址
git add .
git commit -m "Initial commit"
git push -u origin master
上传到一个已有的repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git地址
git push -u origin --all
git push -u origin --tags