Changes between Version 4 and Version 5 of DeveloperGuidelines/Git
- Timestamp:
- 12/20/11 21:54:56 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Git
v4 v5 9 9 == How? == 10 10 The preferred approach is to have a clean repository, in order to get the maximum benefit from the migration...although it is technically possible to [http://fearthecowboy.com/2011/04/29/converting-bazaar-repositories-to-git/ migrate the commit history]. Commit History will instead be maintained on the !LaunchPad site as an archive 11 === Migrating Branches ===11 === Migrating existing Branches === 12 12 Merge branch with trunk using normal Bzr tools 13 13 14 Fork: 15 * on !GitHub: https://github.com/flavour/eden/fork_select 16 * manually (if you already have a fork): http://bitdrift.com/post/4534738938/fork-your-own-project-on-github 14 Assuming that you have already [https://github.com/flavour/eden/fork_select forked Eden Trunk], then you will need to create a new repository manually for additional branches, as you cannot [http://bitdrift.com/post/4534738938/fork-your-own-project-on-github fork your own project on GitHub]: 15 * https://github.com/repositories/new 17 16 {{{ 18 mv eden <mybranch> 19 git clone git@github.com:<mygitusername>/eden.git 20 cd eden 21 diff -u ../<mybranch> > ../mybranch.diff 22 patch -p0 < ../mybranch.diff 17 cd web2py/applications 18 mv <mybranch> <mybranch2> 19 git clone git@github.com:flavour/eden.git <mybranch> 20 }}} 21 * Delete the contents of <mybranch> other than {{{.git}}} & {{{.gitignore}}} 22 * Copy all the contents from <mybranch2> into <mybranch> 23 {{{ 24 cd <mybranch> 23 25 git commit -a 24 26 git push origin master