//Back all commits git reset --soft HEAD^ //If you see 'More', try alternatives //Back one commit git reset --soft HEAD~1 //Back two commit git reset --soft HEAD~2