I'm looking for a way to squash all git commits into a single big commit in master
branch. I fully understand the consequences of what I'm trying to do, no need to explain that this is dangerous or that it's not the right way to go - I want to lose all my history and turn this repository into a single big commit.
The main problem is: I have no other living branches, no local commits, and all of the previous commits have already been pushed to remote master
.
Hacky scripts are also welcome.