Hi I have large repository with bunch of old commits for example:
A---B---...---L---M---N---O---P---Q \ / X---Y
I want to purge all commits before M. Is this posssible for local and remote repository,
and How?
Thanks for proposals.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.