6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

https で git push するときのパスワードをGNOMEのキーリングに保存する

Posted at

環境

  • Ubuntu 16.04 64bit
  • Gitがインストール済み

どうするか

  • GNOMEとGitを接続する認証ヘルパーを設定する

やったこと

  • ヘルパーをコンパイルする(それに必要なライブラリもインストール)
$ sudo apt-get install libgnome-keyring-dev 
$ cd /usr/share/doc/git/contrib/credential/gnome-keyring
$ sudo make
  • Gitにヘルパーを設定
$ git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring

結果

設定後、2回目以降のPushはパスワードを尋ねられなくなった。成功。

出典

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?