How to get back to the latest commit after checking out a previous commit?
If the commit (that you need to return) is known and you want that to attach with the head of some branch then use: git checkout And also you can see the commits that your HEAD has previously pointed to by using: git reflogFor the latest versions of git, if you had done any checkouts something to moving your HEAD You…
Answered Jul 19, 2021 · 1.3K Views Read answer →