A new site for my ramblings
Home | Up |
Overcoming the main problems you encounter cloning and setting up a new workspace.
If the remote repo does not have trusted SSL certificates.
git -c http.sslVerify=false clone <url>
git config http.sslVerify false
If the trust is built into Windows certificate storage mechanism
git config --global http.sslBackend schannel
In cases where the repo is not behind a proxy, but a proxy has been set up.
This is solved in bash.
export no_proxy=<url>
git config --add remote.<name>.proxy ""
To avoid being prompted for your password every time you push. You store the credentials, so you never get asked again, or you can cache them to avoid having to use them too often.
git config credential.helper store
git config credential.helper cache
Which gives 15 minutes by default. For longer, set the timeout. For 8 hours (ie the rest of the day). Note the quoting around the whole config definition.
git config credential.helper 'cache --timeout 28800'
git config --global push.default simple