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”
版权声明:本文为weixin_60002827原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。