I'm fairly new to git and most of my interaction with it has been via the IntelliJ Idea IDE. But sometimes I use a command line. In one directory I did "git init", "git add files", and "git commit".
If you git revert the last commit, you're doing version control wrong. Use git reset --hard instead. It's the choice that makes sense in most scenarios. The other nice thing that happens when you git ...