diff options
| author | Cameron McEfee <cameron@github.com> | 2011-05-27 16:25:16 -0700 |
|---|---|---|
| committer | Cameron McEfee <cameron@github.com> | 2011-05-27 16:26:19 -0700 |
| commit | 75e24fdca4e70e751332c491a4b60a712e12c9e0 (patch) | |
| tree | ce505c13238ac1243de1026f85f26f848cd16d26 /_posts/2008-01-06-move-a-repo.markdown | |
| parent | 379694ab364801b5d06c2070c43fa50594c4bf65 (diff) | |
Reorder files to alphabetize. Update titles to be more conducive to quick scans.
The posts have been re-dated to not only alphabetize them within their categories, but also to make them easier to find with their directory. Files marked 2008 are active post files. Files marked 2009 are outdated or are redirects to newer files. Files have been renamed to match their title for easier updating.
Diffstat (limited to '_posts/2008-01-06-move-a-repo.markdown')
| -rw-r--r-- | _posts/2008-01-06-move-a-repo.markdown | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/_posts/2008-01-06-move-a-repo.markdown b/_posts/2008-01-06-move-a-repo.markdown new file mode 100644 index 0000000..c95d3f6 --- /dev/null +++ b/_posts/2008-01-06-move-a-repo.markdown @@ -0,0 +1,63 @@ +--- +layout: default +title: Move a repo +description: How to move a repo from one account to another +categories: beginner +--- + +This guide details the process of moving a repo to another account. + +Direct move +----------- + +If you wish to move a repo between users or organizations, please [contact support](http://support.github.com/) following the details below. + +**What to check before creating the support request** + +1. Make sure that there is not a repo with the same name on the destination account. + +2. Make sure the destination account has unused private repos available if the repo being moved is private. + +3. **Please** make sure you login with the account that owns the repositories you want support to move for you. If the repositories belong to different accounts, please create one support request per account. + +**What to include in your support request** + +1. List the repositories you want support to move. + +2. Tell us the destination account (the username) + +**Example** + +*Subject:* Move repositories + +*Repositories* + + myaccount/repoA + myaccount/repoB + myaccount/repoC + +*Destination* + + destinationaccount + +Existing forks +-------------- + +If a fork of the repo you wish to move already exists on the target account, you can [contact support](http://support.github.com/) to have the roots switched. Note that deleting the root repo will either delete all forks if the repo is private, or automatically pick a new root if the repo is public. You cannot pick which repo will become the root, so please contact support if you want a specific repo to become the new root. + +Note that if the repo is private the new owner will need a paid plan to support the repo. Issues, wikis, pages, commits comments and non-repo downloads **will not** be transferred to the new root. Make sure you do not delete your old repo if you have any of these you wish to keep. + +Manual clone and push +--------------------- + +If you have a repo on an external server that you wish to move to GitHub, you can move it with a special clone and push. This method will create an exact mirror of the repo into the new repo. + +First, create a new repo on the target account. Next, create a mirror that includes all branches and tags. To do this you need to do a bare-clone followed by a mirror-push: + +<pre class="terminal"> +git clone --bare url/for/my-old-repo.git +cd my-old-repo.git +git push --mirror git@github.com:mycompany/my-new-repo.git +cd .. +rm -rf my-old-repo.git +</pre> |
