git init
git add .
git commit -m "P陈昱同的初始化"
git remote add origin https://gitee.com/chen-yutong-cyt/p5-chen-yutong.git
git push -u origin "master"
error: failed to push some refs to ‘https://gitee.com/chen-yutong-cyt/p5—chen-yutong.git’ (出现此错误应执行下边代码)
创建邮箱和绑定
git config user.name chen
git config user.email chen@66666.com
git commit -m "P陈昱同的初始化"
git remote add origin https://gitee.com/chen-yutong-cyt/p5-chen-yutong.git
报错:error: remote origin already exists. (此错误是因为远程源已经存在,所以执行git remote rm origin 代码)
删除远程仓库:git remote rm origin
git remote add origin https://gitee.com/chen-yutong-cyt/p5-chen-yutong.git
git push -u origin “master”