File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757Authentication
5858--------------
5959
60+ #### Windows
61+ On Windows, the best way to use git securely is [ Git Credential Manager for Windows] [ manager ] .
62+ It's included in the official git installer for windows.
63+
64+ #### Linux and OS X
65+
6066If you do not have a preferred method of authentication, enable the storage
6167credential helper, which will cache your credentials in plaintext on your
6268system, so use a [ token] [ ] .
@@ -65,9 +71,16 @@ system, so use a [token][].
6571git config --global credential.helper store
6672```
6773
68- Alternatively, on Windows, you can try the
69- [ Git Credential Manager for Windows] [ manager ] .
74+ Alternatively, you can use [ ssh key] [ ] .
75+ In this case, you may want to use git-ssh even for https git urls.
76+ It will help you to use submodules transparently.
77+
78+ ```
79+ git config --global url.git@github.com:.insteadOf https://github.com/
80+ ```
81+
7082
83+ [ ssh key ] : https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#generating-a-new-ssh-key
7184[ token ] : https://help.github.com/articles/creating-an-access-token-for-command-line-use/
7285[ manager ] : https://github.com/Microsoft/Git-Credential-Manager-for-Windows
7386
You can’t perform that action at this time.
0 commit comments