Git clone 使用 Personal Access Token,但不适用于 Git push

Yel*_*low 8 git github

我想知道是否有人遇到过这个问题。我创建了一个个人访问令牌下面,也给了访问令牌完全回购访问。

我可以通过以下方式克隆 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
Run Code Online (Sandbox Code Playgroud)

跑步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)
Run Code Online (Sandbox Code Playgroud)

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

Yes*_*ame 9

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

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