error:failed to push some refs to 'xxx'

本地仓库没有Readme文件,先PULL下远程仓库
git pull --rebase origin master
git push -u origin master
PS:pull=fetch+merge


error: GH007: Your push would publish a private email address.

由于设置了邮箱为隐私邮箱,有两种解决方式:

  1. 在GITHUB上setting-Emails-Keep my email addredd private去掉勾选。
  2. 或者命令行中配置邮箱为username@users.noreply.github.com
    git config --global user.email 'username@users.noreply.github.com'

fatal:remote origin already exists

  1. 删除远程GIT仓库链接
    git remote rm origin
  2. 重新添加GIT仓库
    git remote add origin git@github.com:用户名/项目名.git

记录下,过去使用GIT遇得的问题,持续更新,欢迎交流O(∩_∩)O

相关文章:

  • 2021-09-06
  • 2021-08-07
  • 2021-11-27
  • 2021-05-11
  • 2021-11-20
  • 2021-08-26
  • 2021-12-29
猜你喜欢
  • 2021-12-09
  • 2021-09-30
  • 2022-03-01
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案