[英]How can I store Github token with Git Credential Manager on Ubuntu?
With the new Git Credential Manager (GCM) how can I use it to store Github access token on Ubuntu?使用新的 Git 凭据管理器 (GCM),我如何使用它在 Ubuntu 上存储 Github 访问令牌? I have tried to read the usage text and it is not clear how one can store Github token using it.
我试图阅读使用文本,但不清楚如何使用它存储 Github 令牌。
You can store it with:您可以将其存储在:
printf "host=github.com\nprotocol=https\nusername=you\npassword=yourToken" | \
git credential-manager-core store
Make sure git-credential-manager
is in your $PATH
.确保
git-credential-manager
在你的$PATH
中。
Replace ' you
' with your GitHub account name, and ' yourToken
' by your GitHub token.将“
you
”替换为您的 GitHub 帐户名,将“ yourToken
”替换为您的 GitHub 令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.