I was working on a project for many weeks now and I'm having this error when trying to add new changes to git, suddenly:
fatal: not a git repository (or any of the parent directories): .git
My terminal is not recognizing my project as a git repository anymore, so it's not running git commands. I know I could create a new one by running git init, but would that restart of all my branch progress on Github from zero if I push it? If so, is there still a way to push it without losing track?