Next | MJD's Git tips and utilities | 14 |
When you make a commit, Git prints:
[your-topic-branch 4e86fa23] Rework foozle subsystem
If you need to find that commit again, the SHA is in your terminal scrollback
When you fetch a remote branch, Git prints:
6e8fab43..bea7535b dev -> origin/dev
Where was origin/dev before the fetch? 6e8fab43
Where is origin/dev now? bea7535b
What if you want to look at how it was before?
6e8fab43 is still there
git checkout -b how-it-was-before 6e8fab43
What if you want to compare them?
git show 6e8fab43..bea7535b
Git tries to leave a trail of breadcrumbs in your terminal
Next | Copyright © 2021 M. J. Dominus |