|
|
|
|
|
by globular-toast
610 days ago
|
|
As long as you commit everything, yes. The reflog is the safety rope of git. Everyone who isn't confident with the reflog should go and learn it right now. Pick your most important repo. Make sure everything is committed. Doing something stupid like `git reset --hard HEAD~100`. Look how fucked your work is. Do `git reset --hard HEAD@{1}`. Look at how nothing was lost. |
|
Among its other virtues, reflog makes safe the highly empowering 'git-commit --amend'.