Can you completely remove / revert a local commit and all changes without cluttering history?
I would like to incorporate into my workflow something like this:
When starting development, create development commit where I outcomment parts of the code / change environment variables. Then do the real work. Then revert the commit without it showing in history that I did so. The commit history could look something like this:
Realworkcommit2
Realworkcommit1
Developmentcommit1
...
When I am done working, I could revert Developmentcommit1, but that would result in it showing in history:
Reverted Developmentcommit1
Realworkcommit2
Realworkcommit1
Developmentcommit1
...
I would like to remove all traces of Developmentcommit1 having existed, so history looks like this instead, without the development changes showing in any of the commits:
Realworkcommit2
Realworkcommit1
...
Is this possible?