tj.git-extras/man/git-release.md
hemanth.hm 081e14f88f Merge pull request #226 from tsldh/master
Added changelog -c flag to git-release.
2014-12-07 10:49:24 +05:30

57 lines
1.5 KiB
Markdown

git-release(1) -- Commit, tag and push changes to the repository
================================================================
## SYNOPSIS
`git-release` <tagname> [-r <remote>] [-c]
## DESCRIPTION
Commits changes with message "Release <tagname>", tags with the given <tagname> and pushes the branch / tags.
Optionally it generates a changelog (see git-changelog) and a remote can be defined. The order of first -c or -r does not matter.
## OPTIONS
<tagname>
The name of the newly created tag. Also used in tag comment.
-r <remote>
The "remote" repository that is destination of a push operation: it is passed to git push.
-c
Generates or populates the changelog with all commit message since the last tag. For more info see git-changelog..
## EXAMPLES
* 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 -r github
* Release commit with the given <tagname> and populate changelog.
$ git release 0.1.0 -c
* Release commit with the given <tagname>, populate changelog, and push to specific remote.
$ git release 0.1.0 -r github -c
## AUTHOR
Written by Tj Holowaychuk &lt;<tj@vision-media.ca>&gt;
Extended by David Hartmann &lt;<dh@tsl.io>&gt;
## REPORTING BUGS
&lt;<https://github.com/tj/git-extras/issues>&gt;
## SEE ALSO
&lt;<https://github.com/tj/git-extras>&gt;