Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Code Archive to Github

I want to migrate this project https://code.google.com/archive/p/majesticuo to GitHub maintaining the history.

When i try to use the 'Export to GitHub' button, it says 'The Google Code project export tool is no longer available

The Google Code to GitHub exporter tool is no longer available. The source code for Google Code projects can now be found in the Google Code Archive.'

What would be the best way to do it manually? I have no svn knowledge and know a little bit of git. Thanks so much!

like image 336
niceguy335 Avatar asked Sep 04 '16 20:09

niceguy335


People also ask

Can I store code in GitHub?

GitHub and BitBucket are the two most famous places to store your code. Both these provides us public as well as private repositories. Public repositories are free and can be accessed by anyone whereas private are paid and can only be accessed if you know the credentials.

Does Google own GitHub?

Headquartered in California, it has been a subsidiary of Microsoft since 2018. GitHub, Inc.

Does Google have something like GitHub?

Google Drive is a cloud storage and backup platform to access files, docs, photos & more, store them in a safe place, and...


2 Answers

Updated 06 Nov 2017

It appears that you can recover and download the project's history in form of gzipped svn dump stream file. Follow these steps:

  1. Navigate to the Google Code archive page for the project. E.g. https://code.google.com/archive/p/majesticuo/
  2. Copy the download URL under Source.
  3. In the URL, change source-archive.zip to repo.svndump.gz and download the file.

Example URL:

https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/majesticuo/repo.svndump.gz

The file is a gzipped svn repository dump stream file and you can use svnadmin load tool to load it into a new repository.

like image 83
bahrep Avatar answered Oct 15 '22 13:10

bahrep


If you navigate to your project's page in Google Code, then click on "Source" in the sidebar, and then click on "source" inside the resulting page, you'll be taken to a page with a "Download" link. That will lead to a file called "source-archive.zip", which contains some sort of archive of your project--I'm not sure how complete that it, but it does contain some svn metadata. However, if change the last part of that URL from "source-archive.zip" to "repo.svndump.gz", you'll get an svn "dump" of your repo. That should contain the full history and be convertible to git format with various svn-to-git migration tools. (I figured that out based on information in this blog post, which also lists some suggested steps for the final conversion. But if your first attempt at converting the dump fails, try other tools; there are many options and there's a bit of an art to it if your repo history is complicated.)

like image 31
Jeff Clites Avatar answered Oct 15 '22 11:10

Jeff Clites