gpt4 book ai didi

git - 如何设置我的本地 Git 存储库以使用我刚刚创建的新个人访问 token ?

转载 作者:行者123 更新时间:2023-12-05 01:06:34 33 4
gpt4 key购买 nike

我在我的 Mac 上本地 checkout 了一个现有的 GitHub 存储库。由于 Git 需要个人访问 token ,我使用此处的说明创建了一个 - https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token .但是,当我尝试推送本地更改时,系统不会提示我输入 token ...

$ git push
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/myrepo/maps.git/': The requested URL returned error: 403

如何设置我的本地存储库以使用我刚刚创建的 token ?

最佳答案

生成 token 后,在您的 mac 中转到 Keychain Access 应用程序。搜索github.com,双击,选择Show Password,然后输入你的macbook密码,然后输入。您现在可以看到密码,只需粘贴您已经生成的 token ,然后保存更改。

就是这样🤗

关于git - 如何设置我的本地 Git 存储库以使用我刚刚创建的新个人访问 token ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68833701/

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