How to change the URL of a remote Git repository? Let's say if you set the origin as the wrong repository URL of your git project, and you want to change the remote URL of the origin to the correct one.
What did I just commit? So imagine that you blindly committed some changes with `git commit -a`, and you are not satisfied with the particular content of the commit you just created.
How to rename a local and remote branch in Git? Shit Happens!! Sometimes, you named a branch wrong or want to make it more meaningful. Doing it locally is quite simple.
How to remove a file from the previous commit? Sometimes, you would want to remove a specific file or part of the code from your last commit.
How to check for conflict markers in git? While working with teams, there is a good chance of screw-ups. There can be any mistake. One of the most common is leaving conflict markers somewhere. Finding these markers can be tedious if you have a large repository.
How to revert pushed commit from the repo? Despite all the fixes you try, faulty commits occasionally make it into the central repository. Still, this is no reason to despair, since git offers an easy way to revert single or multiple commits.
How to find the commit that broke something after a merge in Git? Tracking the commit that introduced a bug after a big merge can be time-consuming. Luckily git offers a great binary search facility in the form of `git-bisect.`
How do I delete a git branch locally and remotely? Git branches are an essential part of your daily development process, but once you or your team have finished with a feature and merged it into your remote’s main branch, you would want to delete that branch from your local repo and your remote.
How to avoid repeated merge conflicts? I would recommend all developers to set up this globally; you will love it and won't even remember it.
How to remove a file or directory from Git without deleting it from your working directory? There are several situations when you have to remove some part of your code from git history. Doing so is very easy if you know these commands.