blob: 2b8bc15900d759af5a50429a2094a39a1dd9e1e0 [file] [log] [blame]
Vincent Driessen78c73dc2010-01-21 00:48:44 +01001gitflow
2=======
3A collection of Git wrapper scripts to provide high-level repository operations
4for Vincent Driessen's [branching model](http://nvie.com/archives/323 "original
5blog post").
6
7Please help out
8---------------
9This project is yet unimplemented. And yes, I mean unimplemented. There are no
10scripts yet, but I will use this README file as the "design document" for now,
11so people may start collaborating on it.
12
13Feel free to fork this repo and to commit your additions.
14
15Commands
16--------
17Initially, the following subcommands to `gitflow` should be created:
18
19* `start`
20* `finish`
21
22Those subcommands could work on branch types:
23
24* `feature`
25* `release`
26* `hotfix`
27
28Examples
29--------
30
31* To start a new feature branch, use:
32
Vincent Driessene8766e02010-01-21 00:52:26 +010033 gitflow start feature <name> [<base>]
34 gitflow start feature foo-support
Vincent Driessen78c73dc2010-01-21 00:48:44 +010035
36 `base` is `develop` by default.
37
38* To finish this feature and have it merged into `develop`, use:
39
Vincent Driessen60e07ef2010-01-21 00:54:06 +010040 gitflow finish feature <name>
41 gitflow finish feature foo-support
Vincent Driessen78c73dc2010-01-21 00:48:44 +010042
43* To start a new release branch for 2.0, based on the 1.1 production release, use:
44
Vincent Driessen60e07ef2010-01-21 00:54:06 +010045 gitflow start release <release>
46 gitflow start release 2.0
Vincent Driessen78c73dc2010-01-21 00:48:44 +010047
48* To finish the release branch (i.e. to make an actual production release), use:
49
Vincent Driessen60e07ef2010-01-21 00:54:06 +010050 gitflow finish release <release>
51 gitflow finish release 2.0
Vincent Driessen78c73dc2010-01-21 00:48:44 +010052
53* To start a new hotfix branch for 2.1, based on the 2.0 production release, use:
54
Vincent Driessen60e07ef2010-01-21 00:54:06 +010055 gitflow start hotfix <release> [<base-release>]
56 gitflow start hotfix 2.1 2.0
Vincent Driessen78c73dc2010-01-21 00:48:44 +010057
58* To finish the hotfix branch, use:
59
Vincent Driessen60e07ef2010-01-21 00:54:06 +010060 gitflow finish hotfix <release>
61 gitflow finish hotfix 2.1
Vincent Driessen78c73dc2010-01-21 00:48:44 +010062