I commit to a git repository for the first time; I then regret the commit and want to revert it. I try
# git reset --hard HEAD~1
I get thi
You can't. So:
rm -rf .git/ git init git add -A git commit -m 'Your new commit message'