Step 1 : Create a Blank repository on Github without Readme.md
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/02/create-github-repo-without-any-readme-files.jpg)
Step 2 : Moving all code and content from bitbucket
- Check out the existing repository from Bitbucket:
$ git clone git@bitbucket.org:Cotocuschandan/testrepo.git
2. Now adding new GitHub Repository as upstream remote of the repository which is clone from bitbucket.
$ cd testrepo
$ git remote add upstream git@github.com:devops-school-com/ds-test.git
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/02/add-upstream-repository-commands.jpg)
3. push all branches and tags to GitHub Repository using below commands
$ git push upstream master
$ git push --tags upstream
Step 3 : Add URL of New Github Repository as redirect URL
$ git remote set-url origin git@github.com:devops-school-com/ds-test.git
Step 4: At last Clone all branches and tags to GitHub Repository
$ git push --mirror
Thanks for reading the above article. if you have any issues regarding the above commands then please ask in the comment box. I will give you a brief explanation of it.
Git Tutorials | Github Tutorials | Git using Github Crash Course
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
![play](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/playhover.png)
Bitbucket Server Administration Tutorials Part 1
![play](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/playhover.png)
Bitbucket Fundamental Tutorial for Beginners with Demo 2020 ( Part – 02 )— By DevOpsSchool
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
Latest posts by Chandan Kumar (see all)
- Top 10 DevOps Blogs and Websites To Follow in 2023 - December 13, 2022
- How To Set Up Apache Virtual Hosts on Ubuntu 20.04.2 LTS - October 28, 2021
- How to Fix ” Vue packages version mismatch:” error in Laravel 5.5 - April 15, 2021