Git 全局设置:
git config --global user.name "shicw594" git config --global user.email "shicw594@163.com"
创建 git 仓库:
mkdir commons-web
cd commons-web
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/yunti/commons-web.git
git push -u origin master
已有项目?
cd existing_git_repo
git remote add origin https://git.oschina.net/yunti/commons-web.git
git push -u origin master
原文:http://bernoulli.iteye.com/blog/2268493