Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating a git based project from Google Code to Github #347

Closed
krishnanand opened this issue Mar 25, 2013 · 2 comments
Closed

Migrating a git based project from Google Code to Github #347

krishnanand opened this issue Mar 25, 2013 · 2 comments

Comments

@krishnanand
Copy link

I would like to fork a project hosted on Google code and host my fork on github if possible.

Is there a tool for something like this? There is a SVN to Git tool (https://help.github.com/articles/importing-from-subversion) but not sure if there is a tool to migrate code from one hosting service to another.

Any assistance would be appreciated.

@holman
Copy link
Owner

holman commented Mar 25, 2013

Hi!

We don't have any specific importers on GitHub proper, but I'd head in that same direction if I were you. Find a decent importer, import your code locally into Git (if it's in something else like Subversion, for example), and then create a new repository on GitHub and push your updated local repository that way.

Let me know if you need any help!

@holman holman closed this as completed Mar 25, 2013
@krishnanand
Copy link
Author

I apologize for the delay, but I have run into some problems here and there but was finally able to resolve the issue. If you think that this will help some one.. please feel free to share it.

  1. Create a new repo on github.com with this link https://help.github.com/articles/creating-a-new-repository
  2. git clone https://code.google.com/p/ project-name.git
  3. Set the remote origin url as follows: git remote set-url origin https://github.com/ username/ repo-name.git
  4. git pull to pull the latest.
  5. git push origin master after making local changes.

This is the original repo: https://code.google.com/p/test-libraries-for-java
This is my forked repo: https://github.com/krishnanand/test-libraries-for-java/

Please feel free to share if you think it helps any one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants