Commit 7d703a83 authored by Benedikt Böhm's avatar Benedikt Böhm

Merge branch 'develop' of git://github.com/nvie/gitflow into develop

Conflicts:
	gitflow
parents d2240e40 4aaec2f7
......@@ -4,29 +4,51 @@ A collection of Git wrapper scripts to provide high-level repository operations
for Vincent Driessen's [branching model](http://nvie.com/archives/323 "original
blog post").
Please help out
---------------
This project is yet unimplemented. And yes, I mean unimplemented. There are no
scripts yet, but I will use this README file as the "design document" for now,
so people may start collaborating on it.
Feel free to fork this repo and to commit your additions.
Release 0.1
-----------
A quick release of version 0.1 has arrived. The main script are functional and
should be usable under "normal" use.
There have barely been any real-world tests, but I encourage you to start using
it actively. [Feedback](http://github.com/nvie/gitflow/issues) is also very
welcome. See the "Please help out" section below, also.
**Make sure to validate the modifications to your repo after running any of the
`gitflow` commands, before pushing them permanently.**
Installing gitflow
------------------
There isn't a real Unix installer available, but the project is so small that
installing it is easy.
Commands
--------
Initially, the following subcommands to `gitflow` should be created:
Either:
* `start`
* `finish`
- Put the `gitflow` directory anywhere on your Unix `PATH` variable; or
- Run:
Those subcommands could work on branch types:
$ git clone git://github.com/nvie/gitflow
$ cd gitflow
$ cp gitflow* /usr/local/bin
Please help out
---------------
This project is still under development. What is available today is merely its
foundation. However, it is functional in its current form and should be usable
under normal use. (Don't try to create multiple release branches next to each
other and stuff like that, yet.)
Feedback and suggestions are very welcome and I encourage you to use the
[Issues list](http://github.com/nvie/gitflow/issues) on Github to provide that
feedback.
Feel free to fork this repo and to commit your additions.
* `feature`
* `release`
* `hotfix`
Examples
--------
Example uses:
-------------
* To start a new feature branch, use:
......
#!/bin/sh
usage() {
echo "usage: bump-version <version-id>"
}
if [ $# -ne 1 ]; then
usage
exit 1
fi
echo "GITFLOW_VERSION=$1" > gitflow-version
git add gitflow-version
git commit -m "Bumped version number to $1" gitflow-version
......@@ -28,11 +28,14 @@ die() { warn "$@"; exit 1; }
has() { [[ " ${*:2} " == *" $1 "* ]]; }
usage() {
echo "usage: git flow <cmd> <btype> <args>"
. "$GITFLOW_DIR/git-flow-version"
echo "gitflow, version $GITFLOW_VERSION"
echo
echo "<btype> can be any of: feature, release, hotfix, support"
echo "usage: git flow <cmd> <type> <args>"
echo
echo "Try 'git flow help <btype>' for details."
echo "<type> can be any of: feature, release, hotfix, support"
echo
echo "Try 'git flow help <type>' for details."
}
main() {
......
GITFLOW_VERSION=0.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment