git上传代码
创建新仓库,并且第一次上传的时候
echo "# Renju" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/geroge-gao/Renju.git git push -u origin master
更新本地代码
git remote add origin https://github.com/geroge-gao/Renju.git git push -u origin master
如果出现fatal: remote origin already exists.
git remote rm origin//删掉origin git add . git commit -m "update" git remote add origin https://github.com/geroge-gao/Renju.git git push -u origin master