【发布时间】:2022-01-28 03:59:47
【问题描述】:
有没有办法将我的 GitHub 用户名和 PAT 安全地保存在 Google Cloud Shell 中? (https://shell.cloud.google.com)
每次我开始一个新会话时,都会要求我重新输入我的 GitHub 用户名和个人访问令牌 (PAT) 以允许像 git push origin master 这样的命令。 (https://github.com/settings/tokens)
由于 PAT 仅在您首次创建时可见,这意味着我每天都需要重新生成 PAT,以便可以从 Cloud Shell 访问 GitHub。
在我的本地编辑器中,我可以存储我的凭据,重复使用相同的 PAT。
【问题讨论】:
标签: git github google-cloud-platform google-cloud-shell