diff --git a/bin/git-release b/bin/git-release index fbbc1a9..a5ff60b 100755 --- a/bin/git-release +++ b/bin/git-release @@ -13,8 +13,8 @@ if test $# -gt 0; then echo "... releasing $1" git commit -a -m "Release $1" git tag $1 -a -m "Release $1" \ - && git push \ - && git push --tags \ + && git push $2 \ + && git push $2 --tags \ && hook post-release \ && echo "... complete" else diff --git a/man/git-release.1 b/man/git-release.1 index aa7f81c..796d555 100644 --- a/man/git-release.1 +++ b/man/git-release.1 @@ -1,13 +1,13 @@ .\" generated with Ronn/v0.7.3 -.\" https://github.com/rtomayko/ronn/tree/0.7.3 +.\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-RELEASE" "1" "July 2012" "" "" +.TH "GIT\-RELEASE" "1" "October 2012" "" "Git Extras" . .SH "NAME" \fBgit\-release\fR \- Commit, tag and push changes to the repository . .SH "SYNOPSIS" -\fBgit\-release\fR +\fBgit\-release\fR [] . .SH "DESCRIPTION" Commits changes with message "Release ", tags with the given and pushes the branch / tags\. @@ -15,16 +15,28 @@ Commits changes with message "Release ", tags with the given .SH "OPTIONS" . +.P +The name of the newly created tag\. Also used in tag comment\. +. +.P + +. +.P +The "remote" repository that is destination of a push operation: it is passed to git push\. +. .SH "EXAMPLES" +. +.IP "\(bu" 4 Release commit with the given \. . -.IP "" 4 -. -.nf - +.IP $ git release 0\.1\.0 . -.fi +.IP "\(bu" 4 +Release commit with the given and push to specific remote\. +. +.IP +$ git release 0\.1\.0 github . .IP "" 0 . @@ -32,7 +44,7 @@ $ git release 0\.1\.0 Written by Tj Holowaychuk <\fItj@vision\-media\.ca\fR> . .SH "REPORTING BUGS" -<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR> +<\fIhttps://github\.com/visionmedia/git\-extras/issues\fR> . .SH "SEE ALSO" -<\fIhttp://github\.com/visionmedia/git\-extras\fR> +<\fIhttps://github\.com/visionmedia/git\-extras\fR> diff --git a/man/git-release.html b/man/git-release.html index a0112c5..55f5eda 100644 --- a/man/git-release.html +++ b/man/git-release.html @@ -2,7 +2,7 @@ - + git-release(1) - Commit, tag and push changes to the repository