Reverse unnecessary commit with git revert

I made the mistake of doing a git rm for django migrations which messed up my application. This is how I reversed the changes:

$ python3 manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7fe29d2c4950>
Traceback (most recent call last):
  File "/home/joel/.local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
    self.check_migrations()
  File "/home/joel/.local/lib/python3.6/site-packages/django/core/management/base.py", line 442, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 18, in __init__
    self.loader = MigrationLoader(self.connection)
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 49, in __init__
    self.build_graph()
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 273, in build_graph
    raise exc
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 247, in build_graph
    self.graph.validate_consistency()
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/graph.py", line 243, in validate_consistency
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/graph.py", line 243, in <listcomp>
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "/home/joel/.local/lib/python3.6/site-packages/django/db/migrations/graph.py", line 96, in raise_error
    raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration appointments.0002_auto_20180926_0050 dependencies reference nonexistent parent node ('clinic', '0001_initial')

I listed all my commits:

[email protected]:~/myappointments$ git log
commit d570da550fc97321ff114c7f5a0df7e386b93872 (HEAD -> alpha, origin/alpha)
Author: Droidzone (Joel G Mathew) <[email protected]>
Date:   Tue Oct 2 14:32:06 2018 +0530

    .gitignore

commit ffbfd0704e3aa47eaca0cdea08adcd33fd7b59b7
Merge: 3434d766 98e49ffd
Author: Droidzone (Joel G Mathew) <[email protected]>
Date:   Tue Oct 2 14:31:12 2018 +0530

    Merge branch 'alpha' of bitbucket.org:droidzone/myappointments into alpha

commit 3434d766ade77252ab29285a4426d19e396c1114
Author: Droidzone (Joel G Mathew) <[email protected]>
Date:   Tue Oct 2 14:29:57 2018 +0530

    Discarded unnecessary stuff
    Converted doctor form

So 3434d766ade77252ab29285a4426d19e396c1114 is one I want to reverse. But for good measure I will reverse the latest one, i.e d570da550fc97321ff114c7f5a0df7e386b93872 as well:

[email protected]:~/myappointments$ git revert --no-commit d570da550fc97321ff114c7f5a0df7e386b93872
error: Your local changes to the following files would be overwritten by merge:
	.gitignore
Please commit your changes or stash them before you merge.
Aborting
fatal: revert failed
[email protected]:~/myappointments$ git stash
Saved working directory and index state WIP on alpha: d570da55 .gitignore
[email protected]:~/myappointments$ git revert --no-commit d570da550fc97321ff114c7f5a0df7e386b93872
[email protected]:~/myappointments$ git revert --no-commit ffbfd0704e3aa47eaca0cdea08adcd33fd7b59b7
error: commit ffbfd0704e3aa47eaca0cdea08adcd33fd7b59b7 is a merge but no -m option was given.
fatal: revert failed
[email protected]:~/myappointments$ git revert --no-commit 3434d766ade77252ab29285a4426d19e396c1114
error: The following untracked working tree files would be overwritten by merge:
	appointments/__pycache__/admin.cpython-36.pyc
	appointments/__pycache__/apps.cpython-36.pyc
	appointments/__pycache__/forms.cpython-36.pyc
	appointments/__pycache__/models.cpython-36.pyc
	appointments/__pycache__/urls.cpython-36.pyc
	appointments/__pycache__/views.cpython-36.pyc
	clinic/__pycache__/__init__.cpython-36.pyc
	clinic/__pycache__/admin.cpython-36.pyc
	clinic/__pycache__/apps.cpython-36.pyc
	clinic/__pycache__/forms.cpython-36.pyc
	clinic/__pycache__/models.cpython-36.pyc
	clinic/__pycache__/urls.cpython-36.pyc
	clinic/__pycache__/views.cpython-36.pyc
	myappointments/__pycache__/__init__.cpython-36.pyc
	myappointments/__pycache__/settings.cpython-36.pyc
	myappointments/__pycache__/urls.cpython-36.pyc
Please move or remove them before you merge.
Aborting
fatal: revert failed
[email protected]:~/myappointments$ rm appointments/__pycache__/*pyc
[email protected]:~/myappointments$ rm clinic/__pycache__/*pyc
[email protected]:~/myappointments$ rm myappointments/__pycache__/*pyc
[email protected]:~/myappointments$ git revert --no-commit 3434d766ade77252ab29285a4426d19e396c1114
[email protected]:~/myappointments$ python3 manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
October 02, 2018 - 15:22:01
Django version 2.1.2, using settings 'myappointments.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.