Skip to content

Commit c69a5f7

Browse files
jakecraigeJoelQ
authored andcommitted
Configuring git to use the osxkeychain helper
1 parent 58dbf31 commit c69a5f7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

git/osx-keychain.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+

0 commit comments

Comments
 (0)