Lasith Jayalath
Lasith Jayalath

Reputation: 137

How to start working on previous commit on GitHub

I am developing an android application. While depending it crashed. Each step I made a commit to GitHub. So I want to get the commit of the last successful build of my project to the current project. How can I do that?

Upvotes: 3

Views: 156

Answers (1)

WorkShoft
WorkShoft

Reputation: 440

git reset --hard HEAD~1
git commit -m "reset to last working commit"

Upvotes: 1

Related Questions