I am running the command
git revert bf0db5abaca25748a85aaf3cffc4154b3a6e045a
, which is an earlier commit with significant changes, but it does absolutely nothing. The output is
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
Untracked files:
And then it lists a bunch of files, which indeed should not be tracked. The files that are tracked, however, are not reverted.
I am nervous to use git reset as I have already pushed some changes that I want to get rid of. What am I doing wrong with revert? If it is relevant, I have reverted to the same commit before, and it worked fine then.
Thank you.