Reputation: 4059
I have a git android project managed in eclipse and some times i want to temporarily roll back my android project to a specific time and then build it and do stuff and then restore to the latest version. How is this possible?
Upvotes: 22
Views: 56911
Reputation: 31407
To check out an old state:
When you want to go back, just select the commit where master is (or the branch you were working on before) and select Checkout again. Because there is a branch there, it will automatically check out the branch instead of the commit.
Note that you may also have to enable "Show All Branches and Tags" in the history to see master in the history view, see the section in the user guide about this.
Upvotes: 35