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