I work at a shell script which commits automatically my last changes from my project to my local git repository. It works great so my next step is to optimize the script. Now I search for a command to delete the history of my repository except for the last 10 commits.
I only found commands to clean the whole history, that is not the solution I want. Maybe someone had an idea?