How to revert project back to a previous commit in android studio

I am working on a project in android studio and would like to revert to a previous push. I attempted
VCS => Git => Reset Head (Hard)
but my project in Android Studio is unchanged, likely because I’m doing something wrong. I would like to revert the project in Android Studio to a specific earlier commit that I’ve pushed and I see on github. I do not care about any changes that I have made since the earlier push.
Additionally, I would like this to be done through the GUI within Android Studio if possible.

  • Eclipse: How to import git project as library for Android Project which has to be pushed to Bitbucket
  • TeamCity: Configuring Multiple Build tasks to use the Same VCS download
  • Setting up Android project to use git
  • Android source code git download error
  • How to connect existing Android Studio project to existing Github repository
  • SDK Location not found
  • “Git fatal: ref HEAD is not a symbolic ref” while using maven release plugin
  • Why does 'git merge' add files ending with tilde?
  • How to remove unwanted files (like meta data) from Git branch on github
  • How can I get Git to delete a file whose name begins with hyphens?
  • How can I have two “streams of development” (branches?) track each other while remaining different in particular ways?
  • How do I force git pull to overwrite everything on every pull?
  • 3 Solutions collect form web for “How to revert project back to a previous commit in android studio”

    Android Studio Instructions: if you want to do this in Android Studio, press alt + 9 to open the Version Control panel. Switch to the Log tab and right click on a previous commit. Select Checkout Revision.


    Command line instructions: Open the command line tool you are using.
    Go to the Android app’s Git directory (using cd).
    Execute git log and find the previous commit you want to revert to.

    commit 7c247be6d8975dc88f6cc2631c154786a1f3b79e
    Author: John Doe <john@doe.ca>
    Date:   Fri Jun 11 22:37:35 2015 -0400
    
        Some helpful commit message should be here.
    

    If that is the commit you want to revert to, then execute git checkout 7c247b.

    The icon surrounded by red rectangle in image will do the trick

    Right click on folder where you Github folder, press Git Bash Here and type git reset --hard

    Git Baby is a git and github fan, let's start git clone.