简体   繁体   中英

How to store Gerrit password?

我想知道如何存储Gerrit密码,因为每次需要与远程存储库进行交互时,它都会询问我的密码。

You need to install/configure some "Credential helper" to avoid inputting your credentials repeatedly.

To know more details about that execute:

git help credentials

Following some credential helper options:

Ubuntu

A good credential helper for Ubuntu is the git-credential-libsecret. To install/configure it execute:

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

Other Unixes

You can use the git-credential-cache . It doesn't need to be installed because it's in the Git package. To configure it execute:

git config --global credential.helper 'cache --timeout 3600'

Windows

I think a good option for Windows is the Git Credential Manager for Windows .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM