![](/img/trans.png)
[英]How to authenticate Github on Ubuntu? git: 'credential-netrc' is not a git command
[英]How can I store Github token with Git Credential Manager on Ubuntu?
使用新的 Git 凭据管理器 (GCM),我如何使用它在 Ubuntu 上存储 Github 访问令牌? 我试图阅读使用文本,但不清楚如何使用它存储 Github 令牌。
您可以将其存储在:
printf "host=github.com\nprotocol=https\nusername=you\npassword=yourToken" | \
git credential-manager-core store
确保git-credential-manager
在你的$PATH
中。
将“ you
”替换为您的 GitHub 帐户名,将“ yourToken
”替换为您的 GitHub 令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.