gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 20:12:40 26 4
gpt4 key购买 nike

我想知道是否有人遇到过这个问题。我在 this 之后创建了个人访问 token ,并且还提供了对访问 token 的完整 repo 访问权限。

我可以通过以下方式克隆 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)

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

最佳答案

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

Don't worry... I figured it out the account with the access token only had read access...

关于Git clone 使用 Personal Access Token,但不适用于 Git push,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56052926/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com