git remote add origin 你的远程库的地址
git pull --rebase origin master
git push -u origin master
Git使用基础
原文:http://www.cnblogs.com/jxc321/p/7337373.html