git config --global user.name "xxx"
git config --global user.email "[email protected]"
git init
git add . //添加所有文件
git add README.md(如果项目中没有这个文件,会在后面几个操作中报错,解决方法是通过命令合并:git pull --rebase origin master)
git commit -m "first commit"
git remote add origin https://www.yourgiturlxxxx.git
git push -u origin master //提交到码云平台