How do I revert to a previous version of Pi-hole?

You can switch back to the master branch with sudo git checkout master (instead of the sudo git checkout v3.2.1)

Afterwards I could update it to latest version. (maybe you run into this Updated to v3.3; web UI thinks CORE still at v3.2.1)