Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » How to move packages from bazaar to github repo and UppHub
How to move packages from bazaar to github repo and UppHub [message #56180] Thu, 04 February 2021 15:21 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
..correctly, with the history.

This is based on https://docs.github.com/en/github/using-git/splitting-a-subf older-out-into-a-new-repository

I will demonstrate this on moving bazaar/plugin/gdal.

First, clone U++ into some temporary working folder:

git clone https://github.com/ultimatepp/ultimatepp.git
cd ultimatepp


Remove all unwanted history and files:

git filter-branch --prune-empty --subdirectory-filter bazaar/plugin/gdal master

This will put content of bazaar/plugin/gdal to ., so we need to move it where it belongs:

mkdir plugin
mkdir plugin/gdal
git mv -k * plugin/gdal
git commit -m "Reorganized for UppHub"


Now it is time to create a new repo in github, in this case I have created https://github.com/mirek-fidler/gdal. The git remote path is https://github.com/mirek-fidler/gdal.git

git remote set-url origin https://github.com/mirek-fidler/gdal.git


And push it to the new repo:

git push -u -f origin master


The last step is to announce a new shiny UppHub module here, UppHub maintainers will pick up from that...

[Updated on: Thu, 04 February 2021 15:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Library for Selenium WebDriver
Next Topic: SurfaceCtrl, 3D viewer of Multiple file format and Surface class
Goto Forum:
  


Current Time: Fri Apr 26 03:04:09 CEST 2024

Total time taken to generate the page: 0.02886 seconds