【问题标题】:Am unable to push my project folder to GitHub我无法将我的项目文件夹推送到 GitHub
【发布时间】:2021-12-22 14:48:23
【问题描述】:

我无法使用 git 将笔记本电脑上的项目文件夹推送到 GitHub。这是我在 git bash 'git push -u origin master' 中输入命令后它带来的错误。我也有我的互联网连接

远程:dlaw-code/Mama-Bili.git 的权限拒绝 dlàw-code。 致命:无法访问“https://gitHub.com/dlàw-code/Mama-Bili.git/”:请求的 URL 返回错误:403

【问题讨论】:

  • answer 可能与您的问题有关。请检查。
  • 在 git 上的重音符号通常会被删除,因此您需要使用 https://github.com/dlaw-code/Mama-Bili 避免将两者混为一谈

标签: git github cmd syntax-error git-remote


【解决方案1】:

您可以使用此命令设置全局配置git config --globalinit.defaultBranch {branchName}

{branchName} 替换为默认分支名称,现在无论何时创建新的 git 存储库,默认分支都会是这个。

【讨论】:

  • 请问我如何在 git 上从 master 分支更改为 main
  • 看看这是否有帮助,我做了一些修改
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-05-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多