Git 全局设置:
git config --global user.name "username"
git config --global user.email "youremail@domain"
创建 git 仓库:
mkdir oa
cd oa
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/bennyinfo/***.git
git push -u origin master
已有项目?
cd existing_git_repo
git remote add origin https://git.oschina.net/bennyinfo/***.git
git push -u origin master
最容易理解的教程:http://rogerdudler.github.io/git-guide/index.zh.html
原文:http://my.oschina.net/u/2269208/blog/417081