【问题标题】:Git clone works with Personal Access Token, but not Git pushGit 克隆适用于个人访问令牌,但不适用于 Git 推送
【发布时间】:2019-09-26 21:45:30
【问题描述】:

我想知道是否有人遇到过这个问题。我在this 之后创建了一个个人访问令牌,并且还授予了对访问令牌的完全回购访问权限。

我可以通过以下方式克隆 repo:

git clone https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git

但我无法推送它给我的错误:

remote: Repository not found.
atal: repository 'https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git/' not found

运行git remote -v 给出:

origin  https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (fetch)
origin  https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (push)

如果您需要更多信息,请告诉我。

【问题讨论】:

标签: git github


【解决方案1】:

PO 在上面的评论中回答了这个问题:

别担心...我发现具有访问令牌的帐户只有读取权限...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-08
    • 2021-01-07
    • 2020-01-04
    • 1970-01-01
    • 2015-12-18
    • 2019-08-24
    • 2012-02-20
    • 1970-01-01
    相关资源
    最近更新 更多