Git Tip: Removing Invalid Remote Origins
If you are setting up your Git repository and find that you added an invalid remote origin and want to remove it.
Simply run the following:
git remote rm originThis will clear the bad remote origin from your local git repository and allow you to re-add it.