https://blog.csdn.net/a419419/article/details/80063010

解决办法有效:

找到工程目录 (Project) 的.git文件夹,打开之后找到config文件,在最后边加上一句话
[user]
email=your email
name=your name

windows下cmd命令行上传代码到github的指定库

 

git 提示fatal: remote origin already exists 解决办法

解决办法如下:

1、先删除远程 Git 仓

$ git remote rm origin

2、再添加远程 Git 仓库

$ git remote add origin 仓库地址

如果执行 git remote rm origin 依然报错,可以手动修改gitconfig文件的内容

$ vi .git/config
把 [remote “origin”] 那一行删掉。

 

相关文章:

  • 2022-01-22
  • 2021-05-03
  • 2022-12-23
  • 2021-10-08
  • 2022-01-05
  • 2022-02-08
  • 2022-01-15
  • 2021-10-06
猜你喜欢
  • 2021-08-10
  • 2022-01-20
  • 2022-12-23
  • 2021-10-21
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案