Changes between Version 1 and Version 2 of NewLibFromGit
- Timestamp:
- Aug 13, 2014, 7:13:30 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewLibFromGit
v1 v2 2 2 [[PageOutline]] 3 3 4 This page documents the procedure suggested by Daniel James for adding Rene Rivera's Predef library to Boost.4 Once a new library has been accepted via the formal review process, changes indicated by the review are made, and it time to set up a repository for the library in the [https://github.com/boostorg Boost.org GitHub account]. 5 5 6 Thanks to Daniel for supplying this procedure! 6 Before you start, please review the [https://svn.boost.org/trac/boost/wiki/ModBigPicture Modular Boost Overview]. If your library's repository branch or directory organization is markedly different from Boost's usual conventions, you probably want to reorganize your current repository before transferring it to Boost.org. That is usually easier for you to do in your own account's repository. 7 7 8 == Procedure==8 == Transferring a library that already has a !GitHub repository == 9 9 10 A Boost Release Manager first sets up the {{{predef}}} repository in [https://github.com/boostorg boostorg on GitHub], and ensures that the library maintainer has push and pull access rights to it.10 The simplest way to move your newly accepted library into Boost.org's !GitHub repository is to [https://help.github.com/articles/how-to-transfer-a-repository have !GitHub transfer your whole repository] including issues list, wiki, and so on. 11 11 12 {{{git@github.com:grafikrobot/boost-predef.git}}} is the exiting Git public repository used to develop the library.13 14 {{{15 # Create clone containing both repos:16 git clone git@github.com:boostorg/predef.git17 cd predef18 git remote add grafik git@github.com:grafikrobot/boost-predef.git19 git fetch grafik20 21 # Save old branches, so old checkouts of the main module22 # will still work:23 git tag svn-develop origin/develop24 git tag svn-master origin/master25 git push --tags26 27 # Replace master, keeping some files from the old repo:28 # (-B overwrite the local branch)29 git checkout grafik/master -B master30 git checkout svn-master -- .gitattributes index.html31 git commit -m "Add files required for boost"32 git push --force origin master33 34 # Replace develop with master as well,35 # as grafik/predef doesn't have a develop branch36 git checkout -b develop37 git push --force origin develop38 }}}39 12 40 13