这个问题会在出现登录提示之后出现,我输入帐号密码以及Personal access tokens都没有用。
$ git push origin main
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsveri
fy for more information.
remote: Permission to ByteLegendQuest/fix-typo.git denied to whitea-tree.
fatal: unable to access 'https://github.com/ByteLegendQuest/fix-typo.git/': The
requested URL returned error: 403
-
找到 .git 文件夹 如果是 mac 需要在项目文件 按下 shift + command + . 三个按钮,你将会看到隐藏文件。
-
找到 git 文件夹 内的 config 文件,找到下面这段代码 标橙色的 域名。
[remote "origin"] url = https://github.com/J-Boss-Os/J-Boss-Tool.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] -
把域名替换成,账户@密码 后保存
[remote "origin"] url = https://账户@密码/J-Boss-Os/J-Boss-Tool.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"]
应该是最开始clone的时候没有注意,直接clone了原地址。
浙公网安备 33010602011771号