Reputation: 660
I wanted to go back and check how things looked at a previous commit, so I used
svn up -r<number>
As so many posts on this site suggest. But NOW I want to go BACK to what in git-speak is the HEAD, my most recent commit.
I checked svn log to get the revision number, but the log only goes up to the old commit I updated to.
How can I go back to my most recent revision? I'm a little scared to just
svn revert
Knowing that that has a tendency to destroy stuff if you're not careful.
Upvotes: 0
Views: 104
Reputation: 151
A revert will not change the revision of your working copy, it will merely remove any changes that it contains. Just do an update without arguments:
svn update
The implicit revision is HEAD when you do not supply a revision number. You could do it explicitly as well:
svn update -rHEAD
The update command will do its best to preserve your changes, while revert will remove them all.
Upvotes: 3