【发布时间】:2019-07-26 01:24:29
【问题描述】:
我是 GitHub 的初学者。我需要向主分支发送拉取请求。 当我输入代码时
git push origin master
它给了我错误
致命:无法访问 'https://github.com/www-prolificme-com/mahawiki/':请求的 URL 返回错误:403
更新
【问题讨论】:
标签: github error-handling
我是 GitHub 的初学者。我需要向主分支发送拉取请求。 当我输入代码时
git push origin master
它给了我错误
致命:无法访问 'https://github.com/www-prolificme-com/mahawiki/':请求的 URL 返回错误:403
更新
【问题讨论】:
标签: github error-handling
您提到您正在尝试从 git 中提取,但命令是 git push。无论如何,您很可能会收到此错误,因为您的 repo url 未在本地设置。
git config --global user.name "John Doe" 设置您的用户名git config --list 命令检查系统上的 git 配置,以检查您的 repo URL 是否已设置。git remote set-url origin https://github.com/www-prolificme-com/mahawiki/
git remote -v 以验证您的网址是否已设置git add .git commit -m "your message"git push origin master【讨论】:
git config --list 命令的输出?
git commit -v?试试git commit -m "your comment"和git push origin branch_name,你可以用git branch查看分支名称。此外,git remote -v 不执行任何操作,它只返回您所在的当前存储库。
删除/更新已保存的凭据:
【讨论】:
您的仓库未在本地设置 所以,你似乎是崩溃消息
第一
git config --list
显示你的 git repo 集列表 和
git remote set-url origin <your git repo address>
访问 git repo 和 git add . 将您的文件添加到 git 容器
git commit -m "your git commit message"
这是您的 git 提交消息版本或任何可能的内容
git push origin master
最后你的文件推送到 git repo 完成! 试试看
【讨论】: