Adding delete-merge-branches, gh-pages, rename-tag and squash manpages

This commit is contained in:
Jesús Espino 2012-06-28 21:14:17 +02:00
parent f6498e39f3
commit 82041039a5
4 changed files with 161 additions and 0 deletions

View file

@ -0,0 +1,26 @@
git-delete-merged-branch(1) -- Delete merged branches
=====================================================
## SYNOPSIS
`git-delete-merged-branches`
## DESCRIPTION
Deletes all local merged branches.
## EXAMPLES
$ git delete-merged-branches
## AUTHOR
Written by Jesús Espino &lt;<jespinog@gmail.com>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;

40
man/git-gh-pages.md Normal file
View file

@ -0,0 +1,40 @@
git-gh-pages(1) -- Create the GitHub Pages branch
=================================================
## SYNOPSIS
`git-gh-pages`
## DESCRIPTION
Create the GitHub Pages branch (gh-pages) with an initial dummy index.html file.
## EXAMPLES
$ git gh-pages
setting up gh-pages
Removing ...
[gh-pages (root-commit) 94f4b26] Initial commit
1 file changed, 1 insertion(+)
create mode 100644 index.html
Counting objects: 3, done.
Writing objects: 100% (3/3), 232 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:myuser/myrepository.git
* [new branch] gh-pages -> gh-pages
Branch gh-pages set up to track remote branch gh-pages from origin.
complete
$
## AUTHOR
Written by Jesús Espino &lt;<jespinog@gmail.com>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;

52
man/git-rename-tag.md Normal file
View file

@ -0,0 +1,52 @@
git-rename-tag(1) -- Rename a tag
=================================
## SYNOPSIS
`git-rename-tag` &lt;old-tag-name&gt; &lt;new-tag-name&gt;
## DESCRIPTION
Rename a tag (locally and remotely)
## OPTIONS
&lt;old-tag-name&gt;
The name of the tag you want to rename.
&lt;new-tag-name&gt;
The new name of the tag.
## EXAMPLES
$ git tag test
$ git push --tags
Total 0 (delta 0), reused 0 (delta 0)
To git@myserver.com:myuser/myrepository.git
* [new tag] test -> test
$ git tag
test
$ git rename-tag test test2
Deleted tag 'test' (was 1111111)
Total 0 (delta 0), reused 0 (delta 0)
To git@myserver.com:myuser/myrepository.git
* [new tag] test2 -> test2
remote: warning: Deleting a non-existent ref.
To git@myserver.com:myuser/myrepository.git
- [deleted] refs/tag/test
$ git tag
test2
## AUTHOR
Written by Jesús Espino &lt;<jespinog@gmail.com>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;

43
man/git-squash.md Normal file
View file

@ -0,0 +1,43 @@
git-squash(1) -- Import changes form a branch
=============================================
## SYNOPSIS
`git-squash` &lt;source-branch&gt; [&lt;commit-message&gt;]
## DESCRIPTION
Produce the working tree and index state as if a real merge happened without
the commit or merge marks.
## OPTIONS
&lt;source-branch&gt;
Branch to squash on the actual branch.
&lt;commit-message&gt;
If commit-message is given, commit the squash result and delete the source-branch.
## EXAMPLES
$ git squash my-other-branch
Updating a2740f5..533b19c
Fast-forward
Squash commit -- not updating HEAD
my-changed-file | 1 +
1 file changed, 1 insertion(+)
$ git commit -m "New commit without a real merge"
## AUTHOR
Written by Jesús Espino &lt;<jespinog@gmail.com>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;