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

后端 未结 6 1837
春和景丽
春和景丽 2021-01-31 07:11

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

6条回答
  •  长发绾君心
    2021-01-31 07:49

    Open the Version Control Panel using alt + 9 and click on Log. This should show a list of commits. Right click on the commit you want to revert to and select Reset Current Branch to Here. This should bring up a list of options to keep or discard changes when reverting. Select Hard to discard any current changes and click Reset.

提交回复
热议问题