我正在做一个托管在IBM-jazz上的私人回购。
首先,当我想克隆这个存储库时,我必须键入以下命令:
git clone https://user_name:password@hub.jazz.net/git/repo_owner/repo_name执行以下操作时:
git remote show origin它显示了我的资历。
有什么办法可以防止这种情况发生吗?
发布于 2015-10-30 01:14:37
您可以省略凭据,并使用git credential cache将它们缓存到内存中,从而减轻键入凭据的痛苦。您甚至可以使用store the credentials on disk,但请记住,这将以纯文本形式存储密码。
用于缓存凭据5分钟的可能配置(取自here)为:
git config credential.helper 'cache --timeout=300'https://stackoverflow.com/questions/33420337
复制相似问题