I need to retain only the initial & latest commit in both the master
and release
branches of my Gerrit repository.
So how do i remove all previous commits and keep only the initial(repository created) & latest (most recent)?
Note - If suppose, both not possible then Initial commit is not important but latest commit is must.