Created
July 18, 2017 06:50
-
-
Save nepsilon/0fd0c779f76d7172f12477ba9d71bb66 to your computer and use it in GitHub Desktop.
Revisions
-
nepsilon created this gist
Jul 18, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # How to use Mac KeyChain to store GitHub repos credentials? You know the pain, you cloned a repo over HTTPS, and now Git asks you for your password each time you want to push or pull. Chances are you already have the `git credential-osxkeychain` command installed. If not, just install Git with brew: `brew install git`. Once installed, just tell Git to use the KeyChain to store your credentials: ``` git config --global credential.helper osxkeychain ``` Next time you clone a repo via HTTPS, you’ll be prompt for granting access to KeyChain. That’s it. Any future authentication will be done transparently by Git reading the KeyChain record.