diff --git a/History.md b/History.md index 3bd3ea4..0acacba 100644 --- a/History.md +++ b/History.md @@ -1,80 +1,88 @@ +0.0.8 / 2011-02-22 +================== + + * Added `git-create-branch`. + * Refactoring to adopt uniq code style across the scripts. + * git-release: Use annotated tags to release commits instead of lightweight tags. + * git-setup: Create a directory if the provided one doesn't exist yet. + * Fixed `git-ignore`: Don't fail if `.gitignore` file doesn't exist yet. + 0.0.7 / 2010-10-31 ================== - * Added man pages [Jonhnny Weslley] - * Added `make clean` - * Added `make docs` - * Added -d -> -D. Closes #15 - * Added git-delete-submodule for delete submodules easily [Jonhnny Weslley] - * Added; `git-ignore` now shows the contents of _./.git-ignore_ if no args are present + * Added man pages. + * Added `make clean`. + * Added `make docs`. + * Added -d -> -D. Closes #15. + * Added git-delete-submodule for delete submodules easily. + * Added; `git-ignore` now shows the contents of _./.git-ignore_ if no args are present. 0.0.6 / 2010-10-22 ================== - * Added command `git-touch`. [Alex McHale] - * Use a shallow clone in `git-update-extras`. [Devin Withers] - * Create History.md if git-changelog can't find a target. Fixes #14. [Devin Withers] - * Bump version + * Added command `git-touch`. + * Use a shallow clone in `git-update-extras`. + * Create History.md if git-changelog can't find a target. Fixes #14. 0.0.5 / 2010-10-08 ================== - * Added `git-delete-submodule` [Jonhnny Weslley] - * Added; `git-ignore` without pattern shows .gitignore contents [Jonhnny Weslley] - * Added; `git-setup` argument is now optional, defaulting to the CWD - * Added REPL alias "ls" as ls-files + * Added `git-delete-submodule`. + * Added; `git-ignore` without pattern shows .gitignore contents. + * Added; `git-setup` argument is now optional, defaulting to the CWD. + * Added REPL alias "ls" as ls-files. 0.0.4 / 2010-09-10 ================== - * Added: `git-delete-branch`: Also delete the remote branch [Gert Van Gool] - * Added `git-summary` commitish support [Jonathan Leto] - * Added `git-graft` dest branch default of _master_ - * Added `git-setup` [Aggelos Orfanakos] - * Added `git-graft` [Kenneth Reitz] - * Added `git-undo` for removing recent commits. [Kenneth Reitz] - * Fixed `git-delete-branch`: Don't fail if the local branch doesn't exist [Gert Van Gool] - * Fixed __PREFIX__ to respect env vars - * Fixed shift in `git-count` + * Added: `git-delete-branch`: Also delete the remote branch. + * Added `git-summary` commitish support. + * Added `git-graft` dest branch default of _master_. + * Added `git-setup`. + * Added `git-graft`. + * Added `git-undo` for removing recent commits. + * Fixed `git-delete-branch`: Don't fail if the local branch doesn't exist. + * Fixed __PREFIX__ to respect env vars. + * Fixed shift in `git-count`. -0.0.3 / 2010-08-27 +0.0.3 / 2010-08-27 ================== - * Added `git-extras-version` - * Added `git-update-extras` - * Fixed `git-contrib` issue when the username is in a commit msg - * Fixed; delete remote tag only if local was deleted [Aggelos Orfanakos] - * Fixed; delete remote branch only if local was deleted [Aggelos Orfanakos] - * Fixed printing of authors for git-summary's on Ubuntu [jason young] - * Fixed; read doesn't have the -e option in SH on my machine at least. [Nick Campbell] + * Added `git-extras-version`. + * Added `git-update-extras`. + * Fixed `git-contrib` issue when the username is in a commit msg. + * Fixed: delete remote tag only if local was deleted. + * Fixed: delete remote branch only if local was deleted. + * Fixed printing of authors for git-summary's on Ubuntu. + * Fixed: read doesn't have the -e option in SH on my machine at least. 0.0.2 / 2010-08-24 ================== - * Added `git-summary` - * Added `git-commits-since` - * Added `git-repl` - * Added `git-delete-tag` - * Added `git-delete-branch` - * Added `git-contrib` - * Fixed handling off spaces in contributor's name for `git-contrib` [Domenico Rotiroti] - * Fixed spaces in `git-release` names/numbers [Domenico Rotiroti] - * Fixed readme + * Added `git-summary`. + * Added `git-commits-since`. + * Added `git-repl`. + * Added `git-delete-tag`. + * Added `git-delete-branch`. + * Added `git-contrib`. + * Fixed handling off spaces in contributor's name for `git-contrib`. + * Fixed spaces in `git-release` names/numbers. + * Fixed readme. 0.0.1 / 2010-08-05 ================== - * Docs for git-ignore. Closes #3 - * Merge branch 'ignore' - * Added git-ignore - * Readme typo - * Fixed in docs - * Install docs - * Merge branch 'release' - * Added git-release - * Fixed readme - * Readme - * Passing args to git shortlog - * Added --all support to git-count - * Initial commit + * Docs for `git-ignore`. Closes #3. + * Merge branch 'ignore'. + * Added `git-ignore`. + * Readme typo. + * Fixed in docs. + * Install docs. + * Merge branch 'release'. + * Added `git-release`. + * Fixed readme. + * Readme. + * Passing args to git shortlog. + * Added --all support to git-count. + * Initial commit. diff --git a/Readme.md b/Readme.md index 5eed3ed..30259f2 100644 --- a/Readme.md +++ b/Readme.md @@ -23,6 +23,7 @@ Brew (buggy): - git changelog - git commits-since - git count + - git create-branch - git delete-branch - git delete-submodule - git delete-tag @@ -178,8 +179,11 @@ of commits included in the commitish: *.o *.log - Adding patterns from an existing template: - $ git ignore -t rails +## git-create-branch <name> + + Creates local and remote branch _name_. + + $ git create-branch development ## git-delete-branch <name> diff --git a/bin/git-create-branch b/bin/git-create-branch new file mode 100755 index 0000000..ca05dc4 --- /dev/null +++ b/bin/git-create-branch @@ -0,0 +1,9 @@ +#!/bin/sh + +branch=$1 +test -z $branch && echo "branch required." && exit 1 + +git push origin origin:refs/heads/$branch +git fetch origin +git checkout --track -b $branch origin/$branch +git pull diff --git a/man/git-create-branch.1 b/man/git-create-branch.1 new file mode 100644 index 0000000..e321262 --- /dev/null +++ b/man/git-create-branch.1 @@ -0,0 +1,36 @@ +.\" generated with Ronn/v0.7.3 +.\" http://github.com/rtomayko/ronn/tree/0.7.3 +. +.TH "GIT\-CREATE\-BRANCH" "1" "February 2011" "" "Git Extras" +. +.SH "NAME" +\fBgit\-create\-branch\fR \- Create branches +. +.SH "SYNOPSIS" +\fBgit\-create\-branch\fR +. +.SH "DESCRIPTION" +Creates local and remote branch named \. +. +.SH "OPTIONS" + +. +.P +The name of the branch to create\. +. +.SH "EXAMPLES" +. +.nf + +$ git create\-branch integration +. +.fi +. +.SH "AUTHOR" +Written by Jonhnny Weslley <\fIjw@jonhnnyweslley\.net\fR> +. +.SH "REPORTING BUGS" +<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR> +. +.SH "SEE ALSO" +<\fIhttp://github\.com/visionmedia/git\-extras\fR> diff --git a/man/git-create-branch.1.html b/man/git-create-branch.1.html new file mode 100644 index 0000000..78ff595 --- /dev/null +++ b/man/git-create-branch.1.html @@ -0,0 +1,117 @@ + + + + + + git-create-branch(1) - Create branches + + + + +
+ + + +
    +
  1. git-create-branch(1)
  2. +
  3. Git Extras
  4. +
  5. git-create-branch(1)
  6. +
+ +

NAME

+

+ git-create-branch - Create branches +

+ +

SYNOPSIS

+ +

git-create-branch <branchname>

+ +

DESCRIPTION

+ +

Creates local and remote branch named <branchname>.

+ +

OPTIONS

+ +

<branchname>

+ +

The name of the branch to create.

+ +

EXAMPLES

+ +
$ git create-branch integration
+
+ +

AUTHOR

+ +

Written by Jonhnny Weslley <jw@jonhnnyweslley.net>

+ +

REPORTING BUGS

+ +

<http://github.com/visionmedia/git-extras/issues>

+ +

SEE ALSO

+ +

<http://github.com/visionmedia/git-extras>

+ + +
    +
  1. +
  2. February 2011
  3. +
  4. git-create-branch(1)
  5. +
+ +
+ + diff --git a/man/git-create-branch.md b/man/git-create-branch.md new file mode 100644 index 0000000..b88ac9f --- /dev/null +++ b/man/git-create-branch.md @@ -0,0 +1,32 @@ +git-create-branch(1) -- Create branches +======================================= + +## SYNOPSIS + +`git-create-branch` <branchname> + +## DESCRIPTION + + Creates local and remote branch named <branchname>. + +## OPTIONS + + <branchname> + + The name of the branch to create. + +## EXAMPLES + + $ git create-branch integration + +## AUTHOR + +Written by Jonhnny Weslley <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<>