This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| scm:move_bitbucket_git_repo_to_github [2019/08/15 19:47] 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> | ||
| - | * git remote add upstream https://github.com/agtek/<Created Repo>.git (This is the path from above and can be copied from Github) | + | * There is probably a better way, but you need to checkout all the branches so you have them local. | 
| - | * git push upstream master | + | * 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 --tags upstream | + | * git push origin --all (Pushes all the branches) | 
| + | * 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. | ||