This page details the required actions to migrating a repo to Eclipse Foundation GitHub.
End User required actions
If a user had previously cloned the repository before it was moved to the Eclipse Foundation GitHub organization. The move will have caused a few issues to the user’s local repository. The easiest option to resolve the issues is to just do a brand new git clone of the repository from the new location. If however this is not an option below outlines issues that the user will run into and steps to resolve the issues.
Update repository URLs
The origin remote will need to be updated to point to the new URL.
$ git remote set-url origin email@example.com:Eclipse/project.git
Fix master branch
The user’s master branch will still be based on the old master branch and needs to be changed to the new master.
The following commands will rename the local master to “old_master” and create a new master based on the new upstream master:
$ git checkout origin/master $ git branch -m master old_master $ git checkout -b master
Repeat these steps for any other additional branches that may have conflict.
(Optional) Git Replace history
If the user would like to see the old history attached to the new Initial Commit they can checkout the refs/replace/* refspec.
$ git fetch origin refs/replace/*:refs/replace/*