我不知道';我不想在.git/config中缓存我的帐户
如何设置git以在每次使用git时请求帐户和密码? 我不想git缓存我们团队成员的任何帐户或密码我不知道';我不想在.git/config中缓存我的帐户,git,server,Git,Server,如何设置git以在每次使用git时请求帐户和密码? 我不想git缓存我们团队成员的任何帐户或密码 非常感谢 您可以在repo中运行git config--list--show origin,查看您的凭证.helper在哪里 如果.git/config中的credential.helper,请运行: git config --local --unset credential.helper git config --global --unset credential.helper 如果/User
非常感谢 您可以在repo中运行
git config--list--show origin
,查看您的凭证.helper在哪里
如果.git/config
中的credential.helper
,请运行:
git config --local --unset credential.helper
git config --global --unset credential.helper
如果/Users/.gitconfig
中的credential.helper
,请运行:
git config --local --unset credential.helper
git config --global --unset credential.helper
如果它位于其他位置,如/usr/local/etc/gitconfig
,请运行:
git config --system --unset credential.helper
或者,如果您根本不想记住密码,则在该服务器上的所有repo中,unset
all:
git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
根据,可以使用以下命令更改缓存超时:
git config credential.helper'cache--timeout=300'
您可以改为将超时时间更改为1
,只缓存一秒钟(0
通常会将超时时间设置为永不过期,但我看不到有记录在案)。您使用的是什么操作系统?我们的服务器使用的是centos 6.5