Changes between Version 3 and Version 4 of UfoRevisionControl
- Timestamp:
- Feb 19, 2011, 2:37:20 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UfoRevisionControl
v3 v4 44 44 There are already very good branching [http://nvie.com/posts/a-successful-git-branching-model/ models] out there. Although it's up to everyone how he will work on his personal branches, I will show how I use Bazaar to ease my life. 45 45 46 First of all, I import some of the written code using the steps written above. Then I clean the project directory and clone the committed code as a named branch and bind to the server:46 First of all, I import some of the written code using the steps written above. 47 47 {{{ 48 cd project-dir 49 bzr init . 50 bzr add * 51 bzr commit 52 bzr init bzr+ssh://user@ufo.kit.edu/user/project 53 bzr push bzr+ssh://user@ufo.kit.edu/user/project 54 }}} 55 56 Then I clean the project directory and clone the committed code as a named branch and bind to the server: 57 {{{ 58 rm -rf * 48 59 bzr clone bzr+ssh://user@ufo.kit.edu/user/project upstream 49 cd upstream && bzr bzr bind bzr+ssh://user@ufo.kit.edu/user/project 60 cd upstream 61 bzr bind bzr+ssh://user@ufo.kit.edu/user/project 50 62 }}} 51 63 I ''never'' work directly in the upstream branch because every commit would be visible immediatly. Therefore, I branch from the `upstream` branch a local branch where development happens: 52 64 {{{ 65 cd .. 53 66 bzr clone upstream/ local 54 67 }}} 55 68 Whenever I need to work on the same project but tackling different problems, I branch from the `local` branch to a feature specific branch. To push my changes, I just pull (no merging needed) the changes from the `local` branch into the `upstream` branch 56 69 {{{ 57 cd upstream && bzr pull ../local 70 cd upstream 71 bzr pull ../local 58 72 }}} 59 73 … … 63 77 64 78 [[Image(branch-model.png)]] 79 [[Image(branch-model.png)]]