Git how to fix error “failed to connect timeout” while HTTPS from browser works

Are you running into issues when communicating through Git with a remote and the connection timing out, while accessing the Git server via HTTPS from your browser works? Read on. 1. Troubleshooting issue While doing a Git fetc/pull/push you might see the following error: First check if you are able to access your remote Git… Continue reading Git how to fix error “failed to connect timeout” while HTTPS from browser works

Published
Categorized as Git

How to permanently remove a sensitive file in Git from history

If you have committed a sensitive file in Git by mistake, for example a file containing a password, you can choose to remove this file from Git (and rewrite history). NOTE: only do this if you know what you’re doing. Rewriting history in Git is usually considered a bad-practice, especially if you are collaborating with… Continue reading How to permanently remove a sensitive file in Git from history

Published
Categorized as Git

How to delete all commits in a Git repository and replace it with a single “initial commit”

If you have an existing Git repository with multiple commits (history) in it, and you would like to replace all the history with just a single commit, here’s how to do it: NOTE: only do this if you know what you’re doing. Rewriting history in Git is usually considered a bad-practice, especially if you are… Continue reading How to delete all commits in a Git repository and replace it with a single “initial commit”

Published
Categorized as Git

How to fix Git error: unable to get local issuer certificate on Windows

If you use Git on Windows (either via command-line or a GUI), you might run into the following error: Read on in order to fix this.. Problem and cause When you encounter the error above on Windows machines, it is most often caused by the SSL backend config option. The SSL backend defines at which… Continue reading How to fix Git error: unable to get local issuer certificate on Windows

Published
Categorized as Git, Windows