mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Merge branch 'grantslone-master'
This commit is contained in:
commit
7cb8c1a105
27
README.md
27
README.md
@ -1542,7 +1542,7 @@ You can also name the file as just .keep , in which case the second line above w
|
||||
|
||||
### I want to cache a username and password for a repository
|
||||
|
||||
You might have a repository that requires authentication. In which case you can cache a username and password so you don't have to enter it on every push / pull. Credential helper can do this for you.
|
||||
You might have a repository that requires authentication. In which case you can cache a username and password so you don't have to enter it on every push and pull. Credential helper can do this for you.
|
||||
|
||||
```sh
|
||||
$ git config --global credential.helper cache
|
||||
@ -1553,6 +1553,31 @@ $ git config --global credential.helper cache
|
||||
$ git config --global credential.helper 'cache --timeout=3600'
|
||||
# Set the cache to timeout after 1 hour (setting is in seconds)
|
||||
```
|
||||
To find a credential helper:
|
||||
|
||||
```sh
|
||||
$ git help -a | grep credential
|
||||
# Shows you possible credential helpers
|
||||
```
|
||||
|
||||
For OS specific credential caching:
|
||||
|
||||
```sh
|
||||
$ git config --global credential.helper osxkeychain
|
||||
# For OSX
|
||||
```
|
||||
|
||||
```sh
|
||||
$ git config --global credential.helper manager
|
||||
# Git for Windows 2.7.3+
|
||||
```
|
||||
|
||||
```sh
|
||||
$ git config --global credential.helper gnome-keyring
|
||||
# Ubuntu and other GNOME-based distros
|
||||
```
|
||||
|
||||
More credential helpers can likely be found for different distributions and operating systems.
|
||||
|
||||
### I want to make Git ignore permissions and filemode changes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user