User Tools

Site Tools


scm:move_bitbucket_git_repo_to_github

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scm:move_bitbucket_git_repo_to_github [2019/08/15 19:27]
timm created
scm:move_bitbucket_git_repo_to_github [2019/08/19 18:33] (current)
timm
Line 4: Line 4:
  
 ===== Steps ===== ===== Steps =====
-  - Create an empty repository on Github. ​ The naming convention for Android is <​App>​_Android. +     ​* ​Create an empty repository on Github. ​ The naming convention for Android is <​App>​_Android. ​Make sure to choose agtek as the owner and set as a "​private"​ repository so no one outside Agtek can see it.  Also do not check the "​Initialize this repository with a README"​. {{ :​scm:​github_1.png?​600 |}} 
-  ​Clone the repository to move from Bitbucket into your local space +     * Next this page will appear. ​ Notice the https path showing under Quick Setup. ​ You will need this path later on. Choose "​Settings"​ on the far right. {{ :​scm:​github_2.png?​600 |}} 
-  ​- ​cd <Cloned Repository>​ +     * Now we want to add a team so the Agtek development team can see your repository. ​ Select "​Collaborators & teams" on the left side to get to this screen. Once there select "Add a team"​. ​ From the dropdown select "​Developers"​. ​ Next change the permissions to "​Write"​ from "​Read"​ using the dropdown. ​ You are done with this for now. {{ :​scm:​github_3.png?​600 |}} 
-  ​- ​git remote ​add upstream ​https://​github.com/​agtek/<​Created Repo>​.git (This path can be copied from Github) +     ​* ​Clone the repository to move from Bitbucket into your local space 
-  ​- ​git push upstream master +     * cd <Cloned Repository>​ 
-  ​- git push --tags ​upstream +     * 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 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.
scm/move_bitbucket_git_repo_to_github.1565897240.txt.gz · Last modified: 2019/08/15 19:27 by timm