Dropping older Git commits from history?

I have cloned an SVN repository into a Git repository, and I just want the last commits beginning from f3a5b2a commit. I do want to retain the changes, but they can be part of that f3a5b2a commit, I want to get rid of the unnecessary history because I don’t need it anymore and I have the old SVN repository backed up.

There are commits spanning across 7 years, I just want the commits beginning from f3a5b2a.

  • Commit a file to a Different Branch Without Checkout
  • Heroku Deploy Error: No Default Language
  • migrate from CVS to GIT without losing history
  • Git is it possible to revert unstaged files after a checkout
  • git push failure with no conflict
  • The authenticity of host can't be established
  • Should I add the Rails 4 bin/ directory to git?
  • ways to publish pages in github using markdown without having to install jekyll or other tools
  • IntelliJ change markers reflecting local changes instead of VCS changes?
  • What happens when you rewrite history of a public branch?
  • How can I merge two commits into one?
  • Git Init --Bare Error - fatal: Out of memory? mmap failed: No such device
  • One Solution collect form web for “Dropping older Git commits from history?”

    I found a better way to clone an SVN repository and dropping older commits:

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

    It basically clones the given SVN repository, starting from revision 1234 until it hits the head.

    Git Baby is a git and github fan, let's start git clone.