I currently use Assembla for my git hosting. I want to move my git repository to github hosting. I have never done this before - what is the process? Obviously, I want to keep all my previous commits/changes, etc...
Thanks.
I currently use Assembla for my git hosting. I want to move my git repository to github hosting. I have never done this before - what is the process? Obviously, I want to keep all my previous commits/changes, etc...
Thanks.
Pull your repository to a local location using git clone
.
Then create a new repository on github.com, remove the old remote and add the new remote:
git remote rm "assembla remote name"
git remote add origin [email protected]/your_repo_path
git push -u master
git push --tags
? –
Mate git push REMOTENAME TAGNAME
. To push all tags while pushing another branch, you can use git push REMOTENAME BRANCHNAME --tags
. –
Lal First, create a new (empty) repository in GitHub - say Test
Next, Clone from Assembla ( if not already, or git pull
)
Finally, do the following:
cd cloned_from_assembla
git remote rm origin
git remote add origin [email protected]:user/Test.git
git push -u origin master
(basically, remove the remote pointing to assembla and create new one to github and push to it. These instructions are same as the one provided to you by GitHub once you create a new repo.)
You simply need to add new remote to your existing repository and then you can work on multiple remotes.
git remote add <new_name><new url>
and from this point on you can simply do anything on this repo (assuming you have permissions)
git pull <new_name> <branch>
git push <new_name> <branch>
© 2022 - 2024 — McMap. All rights reserved.