gitの認証について、毎回入力するのが面倒だと思って調べてみたところ、いくつか方法があるようでした。gnome-keyringを使うにあたっては、gnome-credential-helper があったようですが、「password – What is the correct way to use git with gnome-keyring and http(s) repos? – Ask Ubuntu 」によると、今は非推奨となったようです。
Ubuntuでは、下記手順で、git-credential-ibsecretを用意して使えば良いようです。
$ sudo apt-get install libsecret-1-0 libsecret-1-dev $ cd /usr/share/doc/git/contrib/credential/libsecret $ sudo make $ git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
cacheをする方法もあるようで、その場合は「Git – 認証情報の保存」によると下記。
$ git config --global credential.helper cache
$HOME/.gitconfig の設定ファイルでの指定例は下記。storeで保存先の指定もできます。
[credential] helper = store --file /mnt/usbmemory/.secret.git-credentials helper = cache --timeout 30000