Next | MJD's Git tips and utilities | 9 |
git-reflog
“List the SHAs I have visited recently”
At the top, where I am now and where I was recently
523e9fa1 (HEAD -> pasha, origin/LAB-1278) HEAD@{0}: checkout: moving from dev to pasha 5c31648d (dev) HEAD@{1}: pull: Fast-forward 07053923 HEAD@{2}: checkout: moving from pr2323 to dev ...
Farther down, commits I visited in back August:
... 58ec94f6 HEAD@{928}: pull --rebase origin dev: checkout 58ec94f6d6cb375e09e29a7a6f904e3b3c552772 e0cfbaee HEAD@{929}: commit: WIP: model classes for condensedPlate and condensedRNAPlate f8d17671 HEAD@{930}: commit: Unskip tests that depend on standard seed data 31137c90 HEAD@{931}: commit (amend): migrate pedigree tests into test/pedigree a4a2431a HEAD@{932}: commit: migrate pedigree tests into test/pedigree 1fe585cb HEAD@{933}: checkout: moving from LAB-808-dao-transaction-test-mode to LAB-815-pedigree-extensions
If I want to go back to how things were, I can get the SHA from the reflog
Then
git reset --hard 881f53fa
Phew, it was just a bad dream
Next | Copyright © 2021 M. J. Dominus |