This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
scm:move_bitbucket_git_repo_to_github [2019/08/15 20:28] timm |
scm:move_bitbucket_git_repo_to_github [2019/08/19 18:33] (current) timm |
||
---|---|---|---|
Line 9: | Line 9: | ||
* Clone the repository to move from Bitbucket into your local space | * Clone the repository to move from Bitbucket into your local space | ||
* cd <Cloned Repository> | * cd <Cloned Repository> | ||
+ | * There is probably a better way, but you need to checkout all the branches so you have them local. | ||
* git remote set-url origin <nowiki>https://github.com/agtek/<Created Repo>.git</nowiki> (This is the path from above and can be copied from Github) | * git remote set-url origin <nowiki>https://github.com/agtek/<Created Repo>.git</nowiki> (This is the path from above and can be copied from Github) | ||
- | * git push origin master | + | * git push origin --all (Pushes all the branches) |
- | * git push --tags origin | + | * git push --tags origin (Pushes all the tags) |
You are done! Now make sure you don't continue to use Bitbucket. We will clean all that up at some point. | You are done! Now make sure you don't continue to use Bitbucket. We will clean all that up at some point. |