mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #147 from code42day/pu
Add remote parameter to git-release
This commit is contained in:
commit
fb38f798c0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 <tagname>
|
||||
\fBgit\-release\fR <tagname> [<remote>]
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
Commits changes with message "Release <tagname>", tags with the given <tagname> and pushes the branch / tags\.
|
||||
|
|
@ -15,16 +15,28 @@ Commits changes with message "Release <tagname>", tags with the given <tagname>
|
|||
.SH "OPTIONS"
|
||||
<tagname>
|
||||
.
|
||||
.P
|
||||
The name of the newly created tag\. Also used in tag comment\.
|
||||
.
|
||||
.P
|
||||
<remote>
|
||||
.
|
||||
.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 <tagname>\.
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
.IP
|
||||
$ git release 0\.1\.0
|
||||
.
|
||||
.fi
|
||||
.IP "\(bu" 4
|
||||
Release commit with the given <tagname> 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>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (https://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-release(1) - Commit, tag and push changes to the repository</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
<ol class='man-decor man-head man head'>
|
||||
<li class='tl'>git-release(1)</li>
|
||||
<li class='tc'></li>
|
||||
<li class='tc'>Git Extras</li>
|
||||
<li class='tr'>git-release(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-release</code> <tagname></p>
|
||||
<p><code>git-release</code> <tagname> [<remote>]</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
|
|
@ -86,16 +86,27 @@
|
|||
|
||||
<p> <tagname></p>
|
||||
|
||||
<p> The name of the newly created tag. Also used in tag comment.</p>
|
||||
|
||||
<p> <remote></p>
|
||||
|
||||
<p> The "remote" repository that is destination of a push operation: it is passed to git push.</p>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<p> Release commit with the given <tagname>.</p>
|
||||
<ul>
|
||||
<li><p>Release commit with the given <tagname>.</p>
|
||||
|
||||
<p>$ git release 0.1.0</p></li>
|
||||
<li><p>Release commit with the given <tagname> and push to specific remote.</p>
|
||||
|
||||
<p>$ git release 0.1.0 github</p></li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ git release 0.1.0
|
||||
</code></pre>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -108,7 +119,7 @@
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>July 2012</li>
|
||||
<li class='tc'>October 2012</li>
|
||||
<li class='tr'>git-release(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ git-release(1) -- Commit, tag and push changes to the repository
|
|||
|
||||
## SYNOPSIS
|
||||
|
||||
`git-release` <tagname>
|
||||
`git-release` <tagname> [<remote>]
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
|
@ -13,12 +13,22 @@ git-release(1) -- Commit, tag and push changes to the repository
|
|||
|
||||
<tagname>
|
||||
|
||||
The name of the newly created tag. Also used in tag comment.
|
||||
|
||||
<remote>
|
||||
|
||||
The "remote" repository that is destination of a push operation: it is passed to git push.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Release commit with the given <tagname>.
|
||||
|
||||
* Release commit with the given <tagname>.
|
||||
|
||||
$ git release 0.1.0
|
||||
|
||||
* Release commit with the given <tagname> and push to specific remote.
|
||||
|
||||
$ git release 0.1.0 github
|
||||
|
||||
## AUTHOR
|
||||
|
||||
Written by Tj Holowaychuk <<tj@vision-media.ca>>
|
||||
|
|
|
|||
Loading…
Reference in a new issue