JPickup
JPickup

Reputation: 388

Revert before cleanup?

I have been using Aptana to commit all my changes and hadn't open SmartGit for a while. When I did today it prompted me to 'Clean up' my repository

I now can't find any commits from April...

Is there a way to revert back the most recent change?

after view all commits

The commits in blue were actually commited a while back. I would like to get back to he last red one "$search_col and $search_val = 0...."

Upvotes: 1

Views: 521

Answers (1)

mstrap
mstrap

Reputation: 17443

A Clean Up hardly can remove commits (unless they are not registered any more in the ref-log files, .git/logs). In your case, the pointer to the HEAD commit may have been lost. You can show all commits using SmartGit's Log and invoking Query|Load All Commits there. If there is actually a HEAD commit without any ref assigned, you may use Branch|Add Branch to assign a ref, thus making it available to standard Git commands again.

Upvotes: 1

Related Questions