mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Added the essential'fresh-branch' feature. Updated Readme.md accordingly.
This commit is contained in:
parent
a7813455cf
commit
db43e1f6aa
|
|
@ -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
6
bin/git-fresh-branch
Executable 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
|
||||
Loading…
Reference in a new issue