Hi I have large repository with bunch of old commits for example:
A---B---...---L---M---N---O---P---Q
\ /
X---YI want to purge all commits before M. Is this posssible for local and remote repository,
and How?
Thanks for proposals.
Community moderators have prevented the ability to post new answers.
If you create a shallow clone that starts at M and push this to another repo or force push it to the original one, that should do the job. Make sure you have a backup of all the branches before you start.
I think I'll try shallow clone and then push to another repo and then replace repos if everything wil be ok ![]()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.