我试图将本地更改推送到我的远程仓库,但出现了错误403 - 权限被拒绝。 remote: Permission to rmanivannan/speedometer-jquery-plugin.git denied to mcttvni. fatal: unable to access 'https://github.com/rmanivannan/ speedometer-jquery-plugin.git/': The requested URL returned error: 403
建议使用SSH方式连接git,而不是账号密码。 如果您今天使用用户名和密码进行Git操作的身份验证,则应进行以下更改以避免将来出现干扰: 按照说明生成用于命令行使用的个人访问令牌。 更新您的Git配置以安全地存储个人访问令牌(可选,但强烈建议)。 来源:Github博客 如果您使用ssh,请记得勾选此项
git remote set-url origin "https://github-username@github.com/github-username/github-repository-name.git"
)。 - Manivannan