So everything was working fine, until yesterday I wrote some code and pushed, but nothing changed in GitHub, so I came and added a comment line and commited then it said fatal error :
Git failed with a fatal error. error: invalid object 100644 342bad3922f69c8ae111f019ceffc916dd4982cb for 'DataAccess/Concrete/EntityFramework/EfColorDal.cs' error: bad tree object HEAD
first the path was pointing to another class, I deleted and wrote it again, and when I committed again it showed this class this time, I figured it would just keep going. and when I run out of everything to try from internet, I decided to restart, upon opening again it said Fixing errors in D disk, where is my solution is placed. It was fixing for like an hour, when it finally ended, nothing changed.
I used gitbash console to execute the codes when I run codes like git --fsck it said:
Checking object directories: 100% (256/256), done.
notice: HEAD points to an unborn branch (master)
notice: No default references
missing tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
As I dont know anything about git coding, I tried some more stuff previous posts suggested, but none of it worked. My local repository is in C disk and it holds the code before yesterday, so I could write the code again, but there is no guarantee it wont happen again, so Im open to any help offered. Thanks