Procedure

mkdir svn
cd svn
svn2git https://url_to_svn_project/trunk --rootistrunk

#if that one doesn't work you can try this one:
#svn2git https://url_to_svn_project/trunk --trunk / --nobranches --notags

cd ..
git clone <git-project> import
cd import
git remote add svn ../svn
git fetch svn
git checkout -b svn svn/master
git checkout -b wip
git reset --hard $(git rev-list --max-parents=0 HEAD)
git reset $(git rev-list --max-parents=0 master)
git add -A
git commit -m <message in first commit of svn branch>
git rebase --onto wip --root svn
git tag  tagname   wip o idcommit
git checkout master
git merge svn

Pull Request

git checkout -b temp_branch upstream/master (or upstream/branch)

git cherry-pick <SHA hash of commit>

git push origin temp_branch

Send a pull request on GitHub for only latest commit

Easiest way to replay commits on new git repository

Updates

Table of Contents