Skip to content

Commit f7a25a0

Browse files
committed
update readme
1 parent 4c11410 commit f7a25a0

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
@@ -45,23 +45,23 @@ To configure together with [git-credential-cache](https://git-scm.com/docs/git-c
4545

4646
```sh
4747
git config --global --unset-all credential.helper
48-
git config --global --add credential.helper "cache --timeout 7200" # two hours
48+
git config --global --add credential.helper "cache --timeout 21600" # six hours
4949
git config --global --add credential.helper azure
5050
# to also use git-credential-oauth
5151
git config --global --add credential.helper oauth
5252
```
5353

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

56-
**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).
56+
**Windows users** are recommended to use storage helper `wincred`.
5757

5858
### Manual config
5959

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

6262
```ini
6363
[credential]
64-
helper = cache --timeout 7200 # two hours
64+
helper = cache --timeout 21600 # six hours
6565
helper = azure
6666
```
6767

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

7272
```ini
7373
[credential]
74-
helper = cache --timeout 7200 # two hours
74+
helper = cache --timeout 21600 # six hours
7575
helper = azure -device
7676
```
7777

git-credential-azure.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A read-only Git credential helper that authenticates to Azure Repos.
1212
Example configuration for Git:
1313
.IP
1414
.EX
15-
git config --global --add credential.helper \[dq]cache --timeout 7200\[dq] # two hours
15+
git config --global --add credential.helper \[dq]cache --timeout 21600\[dq] # six hours
1616
git config --global --add credential.helper azure
1717
.EE
1818
.PP

0 commit comments

Comments
 (0)