How to fix a local Git repo
- rename the folder "projects/my-project" to "projects/save-git"
- Go to the folder "projects/"
- Run
git clone repo-of-my-project
- Remove all files from "projects/my-project" (except from the folder ".git")
- Copy all files of "projects/save-git" to "projects/my-project" (except the folder ".git")
- Go to the folder "projects/my-project"
- Add the files:
git add -A
- Create a commit:
git commit -m "fixed the f*ck git repo"
- Push the repo:
git push origin master