Set up git 告诉github你是谁
git config --global user.name "viprs"
git config --global user.email xxx@gmail.com
mkdir ProjClean
cd ProjClean
git init
touch README
git add README
git commit -m ‘first commit‘
git remote add origin https://github.com/viprs/ProjClean.git
git push -u origin master
cd existing_git_repo
git remote add origin https://github.com/viprs/ProjClean.git
git push -u origin master //-u 是提示用户名、密码
Check out the guide for step by step instructions.
Continue
原文:http://www.cnblogs.com/zhidong123/p/3865193.html