Added the essential'fresh-branch' feature. Updated Readme.md accordingly.

This commit is contained in:
Kenneth Reitz 2010-08-27 23:27:35 -04:00 committed by Tj Holowaychuk
parent a7813455cf
commit db43e1f6aa
2 changed files with 13 additions and 0 deletions

View file

@ -15,6 +15,7 @@
- git count
- git delete-branch
- git delete-tag
- git fresh-branch
- git ignore
- git release
- git contrib
@ -164,6 +165,12 @@ Outputs a repo summary:
$ git delete-tag 0.0.1
## git fresh-branch <name>
Creates empty local branch _name_.
$ git fresh-branch docs
## git-changelog
Populates the file named matching _change|history -i_ with the commits

6
bin/git-fresh-branch Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
test -z $1 && echo "branch required." && exit 1
git symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -fdx