Version 1 (modified by 9 years ago) ( diff ) | ,
---|
Creating a new library from an existing Git repository
This page documents the procedure suggested by Daniel James for adding Rene Rivera's Predef library to Boost.
Thanks to Daniel for supplying this procedure!
Procedure
A Boost Release Manager first sets up the predef
repository in boostorg on GitHub, and ensures that the library maintainer has push and pull access rights to it.
git@github.com:grafikrobot/boost-predef.git
is the exiting Git public repository used to develop the library.
# Create clone containing both repos: git clone git@github.com:boostorg/predef.git cd predef git remote add grafik git@github.com:grafikrobot/boost-predef.git git fetch grafik # Save old branches, so old checkouts of the main module # will still work: git tag svn-develop origin/develop git tag svn-master origin/master git push --tags # Replace master, keeping some files from the old repo: # (-B overwrite the local branch) git checkout grafik/master -B master git checkout svn-master -- .gitattributes index.html git commit -m "Add files required for boost" git push --force origin master # Replace develop with master as well, # as grafik/predef doesn't have a develop branch git checkout -b develop git push --force origin develop
Note:
See TracWiki
for help on using the wiki.