Fork remote SVN repo to git

Apologies if this question is a duplicate, or if I’ve missed something, but in all my searching of the interwebz, I can’t find any information on this.

I want to fork someone else’s SVN project, and then turn it into a local git repo (hopefully preserving all of the SVN commits). All the examples I’ve found have only talked about how to turn your own SVN repo into a git repo via git svn.

  • Why “--cached” flag is required when entering “git diff” results after adding the file (git add) to GIT?
  • Automate git bisect for MSBuild/NUnit/.NET/Windows batch commands in msysgit?
  • Gulp - Get return value of one task from another
  • Compile/Deploying to Heroku with sqlite3 errors
  • how to configure a git server to share projects
  • Set SSH Identities In Bashrc
  • For example, I occasionally write some Adobe AIR apps, and I like to use the open-source AlivePDF library for PDF generation. The SVN repo URL is http://alivepdf.googlecode.com/svn/trunk/. Since I have made some changes to the source code that I use locally in my PDF generation, I want to then turn my local fork into a git project. I’ve tried to just do git svn clone http://alivepdf.googlecode.com/svn/trunk/ alivepdf-read-only --no-metadata --stdlayout . (from the directory where I want to store it). However when I look at the git repo history (gitx on Mac), it appears to be empty, i.e., no history of the original AlivePDF author’s commits.

    Am I doing something wrong? Do I need to SVN fork the project first, then change it into a git project? Please advise.

  • How to select text in git bash console (OS windows) use keyboard?
  • IntelliJ Idea: Disable Auto Commit on Merge
  • How to restore deleted file which got deleted on branch merge?
  • git add remote tracking branch to bare repo
  • Updating file names in Git from camel case to all lower case
  • Force git to not modify files in my working tree
  • One Solution collect form web for “Fork remote SVN repo to git”

    Running
    git svn clone http://alivepdf.googlecode.com/svn/trunk/ alivepdf-read-only on my machine works as expected and gives me complete history, eg:

    nexus-Tablet8\nexus C:\Users\nexus\Development\Misc\alivepdf-read-only
    [master]# git log --oneline -3
    c3b93fb Add the test case reported by the user in the issue 338.
    3577380  - now set the unit to the unit of the new page in addPage.  - add *MarginPt to keep the values in pixel, the olc
    08653f Add a test case to test issue 340.
    

    Are you seeing something different?

    (I tried making this a comment on your question insteadof an answer, but the formatting gets messed up)

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