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 your own time, 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
It is also possible to take a password when adding a remote address. Recommended
Http://yourname:[email Protected]/name/project.git
Add: You can also store passwords using the client.
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://yourname:[email Protected]/name/project.git
Git's https or HTTP way to set the remember user name and password method