How to create repository mirror onto GitHub ?

Recently we wanted to create a yocto cgit repository mirror onto our GitHub which should track our changes as well as Yocto git,  follow below steps to create a mirror on GitHub,

This assumes, we are cloning into poky-mirror directory on our local machine ~/Desktop/devlab/yocto and we have create a new repository named “poky” into our github account.

$ cd ~/Desktop/devlab/yocto
$ git clone --mirror git://git.yoctoproject.org/poky poky-mirror
$ cd poky-mirror/
$ git remote set-url --push origin https://github.com/lynxbee/poky
$ git push --mirror

With this, you should see a git like https://github.com/lynxbee/poky onto your github . Replace URLs as per your need.

Reference : github help


lynxbee_ezoic

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


Leave a Comment

Android Android Applications Android Build system Android Commands Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded