【发布时间】:2020-09-30 14:00:32
【问题描述】:
我在 Stackoverflow 上阅读了各种答案,但没有任何帮助。
情况是这样的。我克隆了一个公共 repo 并创建了一个新分支,然后在分支中提交我的更改,现在我想推送分支。
(base) mona@goku:~/research/summer2020/synthetic-computer-vision$ git push -u origin master sidod
Username for 'https://github.com': monajalal
Password for 'https://monajalal@github.com':
remote: Permission to unrealcv/synthetic-computer-vision.git denied to monajalal.
fatal: unable to access 'https://github.com/unrealcv/synthetic-computer-vision.git/': The requested URL returned error: 403
结果如下:
$ git config --list
credential.helper=osxkeychain
user.name=Mona Jalal
user.email=jalal@bu.edu
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/unrealcv/synthetic-computer-vision.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
我创建了一个新的 RSA,并在删除旧的 RSA 后将其粘贴到我的 git 设置中。我什至删除了钥匙串访问中 git 的条目:
我该如何解决这个问题?
其他信息:
$ git status
On branch sidod
nothing to commit, working tree clean
$ git --version
git version 2.24.3 (Apple Git-128)
$ git branch
master
* sidod
我使用的是 OSX 10.15.2
这是我克隆的公共 git 存储库:https://github.com/unrealcv/synthetic-computer-vision
【问题讨论】:
标签: git git-branch git-push