[英]How to store Gerrit password?
我想知道如何存儲Gerrit密碼,因為每次需要與遠程存儲庫進行交互時,它都會詢問我的密碼。
您需要安裝/配置一些“憑據幫助器”,以避免重復輸入您的憑據。
要了解有關該命令的更多詳細信息,請執行以下操作:
git help credentials
以下是一些憑據幫助器選項:
Ubuntu的
git-credential-libsecret是Ubuntu的一個很好的憑據幫助者。 要安裝/配置它,請執行:
sudo apt-get install libsecret-1-0 libsecret-1-dev
sudo make -C /usr/share/doc/git/contrib/credential/libsecret
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
其他Unix
您可以使用git-credential-cache 。 由於它位於Git軟件包中,因此無需安裝。 要配置它,執行:
git config --global credential.helper 'cache --timeout 3600'
視窗
我認為Windows的一個不錯的選擇是Windows的Git Credential Manager 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.