Reputation: 11732
Say I had 4 revisions - A, B, C and D, in order from newest to oldest. I clicked "Show log" in the TortoiseGit context menu, right clicked C and clicked "Switch/Checkout to this". In the window that opened I disabled the "create new branch" option. Then I closed the "Log" window and opened it again. Revisions A and B were no longer in the list, which is a problem because I wanted to get back to revision A.
Any ideas why A and B disappeared?
Upvotes: 0
Views: 79
Reputation: 38136
It is as what saw, if you checkout to C, HEAD will point to C, and show log only shows commit histories which behind HEAD by default. You can select All Branches checkbox at the bottom-left of log windows, you will find A and B.
D---C---B---A
|
HEAD
D---C---B---A
|
HEAD
If you want to make HEAD re-point to the newest revision A (go back to A), you can close log window -> right click -> TortoiseGit -> select switch/checkout -> choose the current branch -> you will find HEAD is now re-point to A
Upvotes: 0
Reputation: 34042
By default TortoiseGit only shows branches which are on the history of your current HEAD (and maybe only relevant for your current selected file/folder).
In order to see other branches you can click on the branch name in the upper left, there you can select a branch to show the log for. Another alternative is the check "Show all branches" in the lower left.
As mentioned above, TortoiseGit also filters the log for the current selected file/folder. If you want to see the whole repository history, check "Whole project" in the lower left.
Upvotes: 1