I commit changes to git from Android Studio, after that I have made some changes in my project that gives me errors, and now I want to get back that commited version that ha
git reset --soft "HEAD^"
this will remove the latest commit.