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.
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.
Shit Happens!! There are times where you named a branch wrong or want to make it more meaningful. Doing it locally is quite simple.
There can be times when you would want to remove a specific file or part of the code from your last commit.
Despite all the fixes you try, faulty commits do 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.
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.