Does removing old git come from history?

I cloned the SVN repository into the Git repository, and I just need the latest commits starting with f3a5b2acommit. I want to save the changes, but they can be part of this f3a5b2acommit, I want to get rid of the unnecessary history, because I no longer need it, and I have an old SVN backup repository.

There are commits spanning 7 years, I just want commits to start with f3a5b2a.

+5
source share
1 answer

I found a better way to clone the SVN repository and reset old commits:

git svn clone -r1234:HEAD https://asdasd/ targetPath

It basically clones this SVN repository, starting with version 1234, until it hits its head.

+7
source

All Articles