Commit allegedly succeeded but files are ignored and git-objects are corrupt
==========================================================
Hello,
I regularly work with MATLAB's Source Control, for years, and all relevant GIT operations are available and successful.
However, I recently started another new project, and after a successful "Source Control" setup (adding and commiting by the "Source Control" interface, as I have always done before), the files immediately moved from normal green circles (expected commit sign) to dot sign (ignored), indicating that the project's files were not properly commited.
In the below, I describe various error reports that I get, which relate to this problem.
What could have happened that caused this commit failure, and how can this be fixed?
What could be different from the normal procedure that always worked for me before :)
THANK YOU!
--------------------------------------------------------
Related Errors Description:
** "Source Control --> Refresh Git Status" yields:
"Missing Unknown ....... "
** "Source Control --> Push" yields:
Unable to push to remote 'origin' at ....
src refspec 'refs/heads/master' does not match any existing object (-1x4)'
** The !git status command yields:
fatal: bad object HEAD
** The !git fetch command yields
fatal: git upload-pack: not our ref 0000000000000000000000000000000000000000
fatal: remote error: upload-pack: not our ref 0000000000000000000000000000000000000000
** The !git fsck --full command yields many such lines:
bad sha1 file: .git/objects/17/997a16efa1715247366cb39d410a47ca88d61c.tmp
and also:
error: refs/desktop.ini: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/desktop.ini: invalid sha1 pointer 0000000000000000000000000000000000000000
error: refs/heads/master: invalid sha1 pointer 55288f81110bf3b016a8c4020dc77609a3e3e292
error: refs/tags/desktop.ini: invalid sha1 pointer 0000000000000000000000000000000000000000
error: HEAD: invalid sha1 pointer 55288f81110bf3b016a8c4020dc77609a3e3e292
error: HEAD: invalid reflog entry 55288f81110bf3b016a8c4020dc77609a3e3e292
error: refs/heads/master: invalid reflog entry 55288f81110bf3b016a8c4020dc77609a3e3e292
error: bad ref for .git/logs/refs/heads/desktop.ini
error: bad ref for .git/logs/refs/desktop.ini
error: bad ref for .git/logs/desktop.ini
dangling tree 762bd76d7790b0422cb9a87fb43656023121b1bc
notice: No default references
** The !git ls-files command yields the list of all commited files.
Notes:
** The .git folders in both SandBox and Remote look ok.
** Both SandBox and Remote are on Google Drive. I have read that this should work.
** I tried several advices given for the situation (various git commands).
** .gitignore does NOT exclude any file yet
What could have happened, and how can this be fixed? What could be different from the normal procedure that always worked for me before :)
Thank you,
Regards.