HTTPS mode every time you have to enter a password, according to the following settings can be entered once without having to enter the password trouble and enjoy the speed of HTTPS
Set Remember password (default 15 minutes):
git config--global credential.helper cache
If you want to set the expiration time yourself, you can do this:
git config credential.helper ' cache--timeout=3600 '
This is set to expire after one hours.
Long-term storage password:
git config--global credential.helper store
or a remote address with a password.
?
| 1 |
http://yourname:[email protected]/name/project.git |
Add: You can also store passwords using the client.
For more information, see http://git.oschina.net/oschina/git-osc/issues/2586 user sharing client Storage
If you are using SSH and want to experience the high speed that HTTPS brings, then you can do this: switch to the project directory:
CD projectfile/
Remove the warehouse address from remote SSH mode
Git remote RM origin
Add HTTPS remote Warehouse address
Git remote add Origin http://git.oschina.net/username/project.git
Done, enjoy the speed!.
HTTPS mode using [email protected] to set the password