cd ..
sudo rm -r fucking-git-repo-dir
git clone https://some.github.url/fucking-git-repo-dir.git
cd fucking-git-repo-dir
Originally Posted On: OhShitGit
If you are frustrated and don't want to try out anything else, or if nothing else works. This is your last resort that will certainly work.
cd ..
sudo rm -r fucking-git-repo-dir
git clone https://some.github.url/fucking-git-repo-dir.git
cd fucking-git-repo-dir
Originally Posted On: OhShitGit