File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Using git's osxkeychain helper to cache GitHub authentication
2
+
3
+ Recently after reformatting my computer I've had to input my username/password
4
+ every time I try to do something with GitHub via the command line. Today I took
5
+ the time to finally figure out what was going on.
6
+
7
+ Turns out that I had a newer version of git that behaves a little differently.
8
+ Today I learned that you need to configure git to use this so it will stop
9
+ nagging you.
10
+
11
+ ## The Symptoms
12
+
13
+ 1 . You are asked for your username and password when you interact with
14
+ an HTTPS GitHub remote.
15
+ 2 . It does not ask for your username and password when you interact with an SSH
16
+ GitHub remote.
17
+ 3 . You're git version is 1.7.10 or newer. Run ` git --version ` to find out which
18
+ version you have.
19
+
20
+ ## The Cure
21
+
22
+ You need to configure git to cache your username and password with the
23
+ osxkeychain credential helper.
24
+
25
+ GitHub's help pages describe how to do this [ here] ( https://help.github.com/articles/caching-your-github-password-in-git/ )
26
+
You can’t perform that action at this time.
0 commit comments