SyntaxFix
Write A Post
Hire A Developer
Questions
To follow up on malat's response, you can avoid losing changes by creating a patch and reapply it at a later time.
git diff --no-prefix > patch.txt patch -p0 < patch.txt
Store your patch outside the repository folder for safety.