Let them have the order:
Is this operation protected from data loss? Is there a chance that his fixation will be lost?
No and no, in that order. Or maybe “not yet” is better for a second answer.
Git reset --hard () : , , , ; , ; , .
, , . , Git , ( Git, , / ).
git reset git reset --mixed. . , ( ). , . , , ( Git): , .git git worktree add -ed ).
" " git reset, git reset --soft. . , , , , ORIG_HEAD.
ORIG_HEAD, , git reset, , , . , - HEAD, - 30 Git reflogs. , ORIG_HEAD, reflog, .
(Reflogs --bare, .)
, runnning Git gc?
ORIG_HEAD, . , gc. ORIG_HEAD reflog ( ) , , , .
, [ ] ?
Reflogs ( ORIG_HEAD) . , git fsck --lost-found ( ) lost-found .git, , git gc -ed. , git add -ed, ( " ", --lost-found ).
, , git reset -
- git checkout . " ", , : git checkout <branch>, HEAD. , , , git bisect, , . git bisect - () , , () , - , . , , bisect , .
, : git bisect run , . git bisect , , - "" "".