3 ms·
I’ve just tested that exact command and the reflog is storing the changes. It’s different from the log command which displays the commit tree for the specified
by skydhash 7mo ago
I’ve just tested that exact command and the reflog is storing the changes. It’s different from the log command which displays the commit tree for the specified branch. The reflog stores information about operations that updates branches and other references (rebase, reset, amend, commit,…). So I can revert the reset, or a pull.
- rstuart4133 7mo ago`git reset --hard` destroys uncommitted changes. There is no git command to recover those files. JJ has a similar command of course, but it saves the files to a hidden commit before changing them.