Github或者码云上新建项目
$ git init $ git add * $ git remote add origin https://gitee.com/demo/demo.git $ git pull $ git commit -m "新建项目demo-base" $ git push -f origin master
$ git push -u origin master #默认提交至该版本
Github或者码云上新建项目
$ git init $ git add * $ git remote add origin https://gitee.com/demo/demo.git $ git pull $ git commit -m "新建项目demo-base" $ git push -f origin master
$ git push -u origin master #默认提交至该版本
转载于:https://www.cnblogs.com/itplay/p/9923868.html