You can use the following Git commands to find commits where a string was added/modified/deleted. This can be helpful to find commits where a certain method was added, modified, deleted or usages were added/deleted. 1. Find commits where method was mentioned. Powershell script (for Windows)
Category: Git
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
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
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”
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