You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,24 @@ A simple git [credentials helper](https://git-scm.com/docs/gitcredentials) for G
8
8
9
9
# Features
10
10
* Its way less bloated than [Git Credential Manager](https://github.blog/2022-04-07-git-credential-manager-authentication-for-everyone)
11
-
*It relays to another credential helper. So you can use standard credential helpers with GitHub
11
+
*You can use it together with any other git credential helper of choice
12
12
13
13
# Install
14
14
15
15
## Debian/Ubuntu
16
-
Download the .deb from the [latest release](https://github.com/xgames123/git-credential-github/releases/latest) and run ```dpkg -i file_you_just_downloaded.deb```
16
+
Download the .deb from the [latest release](https://github.com/xgames123/git-credential-github/releases/latest) and run `dpkg -i file_you_just_downloaded.deb`
17
17
18
18
## Arch linux
19
19
Install git-credential-github form the AUR. [ArchLinux wiki](https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages)
20
20
21
21
# Configuring
22
+
NOTE: Configuring changed after v2.2 [pre v2.2 config](PRE_v2_2_CONFIG.md)
23
+
22
24
```~/.gitconfig```
23
25
```ini
24
26
[credential "https://github.com"]
25
-
helper = github -b 'cache --timeout=86400'
27
+
helper = cache
28
+
helper = github # important that you put it last because we only need to run gcg when other helpers have failed to give credentials
26
29
```
27
30
This sets the credential helper for github using the cache helper with a timeout of 1 day
28
31
@@ -32,20 +35,28 @@ This sets the credential helper for github using the cache helper with a timeout
32
35
```~/.gitconfig```
33
36
```ini
34
37
[credential]
35
-
useHttpPath = true
38
+
useHttpPath = true# makes git give the whole path instead of just https://github.com
36
39
[credential "https://github.com/Xgames123"]# change to your name
0 commit comments