Skip to content

Commit 78216c9

Browse files
committed
update readme
1 parent 6cc02db commit 78216c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ To configure together with [git-credential-cache](https://git-scm.com/docs/git-c
8888

8989
```sh
9090
git config --global --unset-all credential.helper
91-
git config --global --add credential.helper "cache --timeout 7200" # two hours
91+
git config --global --add credential.helper "cache --timeout 21600" # six hours
9292
git config --global --add credential.helper oauth
9393
```
9494

9595
You may choose a different storage helper such as `osxkeychain`, `wincred` or `libsecret`, but git-credential-oauth must be configured last. This ensures Git checks for *stored* credentials before generating *new* credentials.
9696

97-
**Windows users** must use storage helper `wincred` because [git-credential-cache isn't available on Windows](https://github.com/git-for-windows/git/issues/3892).
97+
**Windows users** are recommended to use storage helper `wincred`.
9898

9999
### Manual config
100100

101101
Edit your [global git config](https://git-scm.com/docs/git-config#FILES) `~/.gitconfig` to include the following lines:
102102

103103
```ini
104104
[credential]
105-
helper = cache --timeout 7200 # two hours
105+
helper = cache --timeout 21600 # six hours
106106
helper = oauth
107107
```
108108

@@ -112,7 +112,7 @@ On systems without a web browser, set the `-device` flag to authenticate on anot
112112

113113
```ini
114114
[credential]
115-
helper = cache --timeout 7200 # two hours
115+
helper = cache --timeout 21600 # six hours
116116
helper = oauth -device
117117
```
118118

git-credential-oauth.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Example configuration for Git:
1414
.IP
1515
.EX
1616
git config --global --unset-all credential.helper
17-
git config --global --add credential.helper \[dq]cache --timeout 7200\[dq] # two hours
17+
git config --global --add credential.helper \[dq]cache --timeout 21600\[dq] # six hours
1818
git config --global --add credential.helper oauth
1919
.EE
2020
.PP

0 commit comments

Comments
 (0)