Difference between revisions of "Sdobbs splitting sim-recon"

From GlueXWiki
Jump to: navigation, search
(Created page with "===Notes on splitting off gluex_sim=== Example: https://github.com/sdobbs/gluex_sim Need to split off src/programs/Simulation and src/plugins/Simulation from sim-recon Exa...")
(No difference)

Revision as of 14:42, 15 May 2018

Notes on splitting off gluex_sim

Example: https://github.com/sdobbs/gluex_sim

Need to split off src/programs/Simulation and src/plugins/Simulation from sim-recon

Example:

make new (empty) repo - https://github.com/sdobbs/sim2.git
clone sim-recon git repo
cd sim-recon
git filter-branch --prune-empty --subdirectory-filter src/programs/Simulation/ master   # delete the rest of sim-recon
git remote set-url origin https://github.com/sdobbs/sim2.git   # associate the remote master with the empty repo
git push origin master  # push src/programs/Simulation to new (temporary) remote repo

change to new (empty) gluex_sim repo
git subtree add --prefix=src/programs https://github.com/sdobbs/sim2.git master   # move src/programs/Simulation from temp repo to gluex_sim along with history