mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
Merge pull request #41 from jweslley/master
Added new tools, code style and fixes... [jweslley]
This commit is contained in:
commit
b194a23c02
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
|
||||
114
History.md
114
History.md
|
|
@ -1,4 +1,13 @@
|
|||
|
||||
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.4.1 / 2011-04-05
|
||||
==================
|
||||
|
||||
|
|
@ -33,79 +42,78 @@
|
|||
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 <tag> 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 <tag> 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.
|
||||
|
|
|
|||
92
Readme.md
92
Readme.md
|
|
@ -25,11 +25,13 @@ Brew (buggy):
|
|||
- git commits-since
|
||||
- git pull-request
|
||||
- git count
|
||||
- git create-branch
|
||||
- git delete-branch
|
||||
- git delete-submodule
|
||||
- git delete-tag
|
||||
- git fresh-branch
|
||||
- git graft
|
||||
- git alias
|
||||
- git ignore
|
||||
- git release
|
||||
- git contrib
|
||||
|
|
@ -99,28 +101,28 @@ Outputs a repo summary:
|
|||
|
||||
$ git summary
|
||||
|
||||
project: express
|
||||
commits: 1893
|
||||
files : 111
|
||||
authors:
|
||||
1285 visionmedia
|
||||
478 Tj Holowaychuk
|
||||
48 Aaron Heckmann
|
||||
34 csausdev
|
||||
26 ciaranj
|
||||
project: express
|
||||
commits: 1893
|
||||
files : 111
|
||||
authors:
|
||||
1285 visionmedia
|
||||
478 Tj Holowaychuk
|
||||
48 Aaron Heckmann
|
||||
34 csausdev
|
||||
26 ciaranj
|
||||
6 Guillermo Rauch
|
||||
3 Nick Poulden
|
||||
2 Brian McKinney
|
||||
2 Benny Wong
|
||||
1 Justin Lilly
|
||||
1 James Herdman
|
||||
1 Adam Sanderson
|
||||
1 Viktor Kelemen
|
||||
1 Gregory Ritter
|
||||
1 Greg Ritter
|
||||
1 ewoudj
|
||||
1 isaacs
|
||||
1 Matt Colyer
|
||||
3 Nick Poulden
|
||||
2 Brian McKinney
|
||||
2 Benny Wong
|
||||
1 Justin Lilly
|
||||
1 James Herdman
|
||||
1 Adam Sanderson
|
||||
1 Viktor Kelemen
|
||||
1 Gregory Ritter
|
||||
1 Greg Ritter
|
||||
1 ewoudj
|
||||
1 isaacs
|
||||
1 Matt Colyer
|
||||
|
||||
This command can also take a commitish, and will print a summary for the range
|
||||
of commits included in the commitish:
|
||||
|
|
@ -132,7 +134,7 @@ of commits included in the commitish:
|
|||
GIT read-eval-print-loop:
|
||||
|
||||
$ git repl
|
||||
|
||||
|
||||
git> ls-files
|
||||
History.md
|
||||
Makefile
|
||||
|
|
@ -143,7 +145,7 @@ of commits included in the commitish:
|
|||
bin/git-delete-tag
|
||||
bin/git-ignore
|
||||
bin/git-release
|
||||
|
||||
|
||||
git> quit
|
||||
|
||||
## git-commits-since [date]
|
||||
|
|
@ -197,15 +199,37 @@ of commits included in the commitish:
|
|||
## git-release
|
||||
|
||||
Release commit with the given <tag>.
|
||||
|
||||
|
||||
$ git release 0.1.0
|
||||
|
||||
|
||||
Does the following:
|
||||
|
||||
- Commits changes (to changelog etc) with message "Release <tag>"
|
||||
- Tags with the given <tag>
|
||||
- Pushes the branch / tags
|
||||
|
||||
## git-alias
|
||||
|
||||
Define, search and show aliases.
|
||||
|
||||
Defining a new alias:
|
||||
|
||||
$ git alias last "cat-file commit HEAD"
|
||||
|
||||
Providing only one argument, `git-alias` searchs for aliases matching the given value:
|
||||
|
||||
$ git alias ^la
|
||||
last = cat-file commit HEAD
|
||||
|
||||
`git-alias` will show all aliases if no argument is given:
|
||||
|
||||
$ git alias
|
||||
s = status
|
||||
amend = commit --amend
|
||||
rank = shortlog -sn --no-merges
|
||||
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
|
||||
whois = !sh -c 'git log -i -1 --pretty="format:%an <%ae>
|
||||
|
||||
## git-ignore
|
||||
|
||||
To lazy to open up _.gitignore_? me too! simply pass some patterns:
|
||||
|
|
@ -219,7 +243,13 @@ of commits included in the commitish:
|
|||
$ git ignore
|
||||
build
|
||||
*.o
|
||||
*.log
|
||||
*.log
|
||||
|
||||
## git-create-branch <name>
|
||||
|
||||
Creates local and remote branch _name_.
|
||||
|
||||
$ git create-branch development
|
||||
|
||||
## git-delete-branch <name>
|
||||
|
||||
|
|
@ -258,10 +288,10 @@ of commits included in the commitish:
|
|||
since the previous tag or since the project began when no tags are present. Opens the changelog in **$EDITOR** when set.
|
||||
|
||||
$ git changelog && cat History.md
|
||||
|
||||
n.n.n / 2010-08-05
|
||||
|
||||
n.n.n / 2010-08-05
|
||||
==================
|
||||
|
||||
|
||||
* Docs for git-ignore. Closes #3
|
||||
* Merge branch 'ignore'
|
||||
* Added git-ignore
|
||||
|
|
@ -272,9 +302,9 @@ since the previous tag or since the project began when no tags are present. Open
|
|||
* Passing args to git shortlog
|
||||
* Added --all support to git-count
|
||||
* Initial commit
|
||||
|
||||
|
||||
Listing commits:
|
||||
|
||||
|
||||
$ git changelog --list
|
||||
|
||||
* Docs for git-ignore. Closes #3
|
||||
|
|
|
|||
7
bin/git-alias
Executable file
7
bin/git-alias
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $# in
|
||||
0) git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort ;;
|
||||
1) git alias | grep -e "$1" ;;
|
||||
*) git config --global "alias.$1" "$2" ;;
|
||||
esac
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
user="$1"
|
||||
if test -z "$user"; then
|
||||
echo "user name required." && exit 1
|
||||
else
|
||||
count=`git log --oneline --pretty="format: %an" | grep "$user" | wc -l`
|
||||
test $count -eq 0 && echo "$user did not contribute." && exit 1
|
||||
git shortlog | grep "$user (" -A $count
|
||||
fi
|
||||
user="$*"
|
||||
|
||||
test -z "$user" && echo "user name required." && exit 1
|
||||
|
||||
count=`git log --oneline --pretty="format: %an" | grep "$user" | wc -l`
|
||||
test $count -eq 0 && echo "$user did not contribute." && exit 1
|
||||
git shortlog | grep "$user (" -A $count
|
||||
|
|
|
|||
9
bin/git-create-branch
Executable file
9
bin/git-create-branch
Executable file
|
|
@ -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
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "branch required." && exit 1
|
||||
git branch -D $1
|
||||
git branch -d -r origin/$1 && git push origin :$1
|
||||
branch=$1
|
||||
test -z $branch && echo "branch required." && exit 1
|
||||
git branch -D $branch
|
||||
git branch -d -r origin/$branch && git push origin :$branch
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "submodule required" && exit 1
|
||||
submodule=$1
|
||||
|
||||
test -z $submodule && echo "submodule required" && exit 1
|
||||
test ! -f .gitmodules && echo ".gitmodules file not found" && exit 2
|
||||
|
||||
NAME=$(echo $1 | sed 's/\/$//g')
|
||||
NAME=$(echo $submodule | sed 's/\/$//g')
|
||||
test -z $(git config --file=.gitmodules submodule.$NAME.url) && echo "submodule not found" && exit 3
|
||||
|
||||
git config --remove-section submodule.$NAME
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "tag required." && exit 1
|
||||
git tag -d $1 && git push origin :refs/tags/$1
|
||||
tagname=$1
|
||||
test -z $tagname && echo "tag required." && exit 1
|
||||
git tag -d $tagname && git push origin :refs/tags/$tagname
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "branch required." && exit 1
|
||||
git symbolic-ref HEAD refs/heads/$1
|
||||
branch=$1
|
||||
|
||||
test -z $branch && echo "branch required." && exit 1
|
||||
|
||||
git symbolic-ref HEAD refs/heads/$branch
|
||||
rm .git/index
|
||||
git clean -fdx
|
||||
git clean -fdx
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
test -z $1 && echo "source branch required." && exit 1
|
||||
src=$1
|
||||
dst=$2
|
||||
|
||||
test -z $src && echo "source branch required." && exit 1
|
||||
|
||||
git checkout $dst \
|
||||
&& git merge --no-ff $src \
|
||||
&& git branch -d $src
|
||||
&& git branch -d $src
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test $# -eq 0; then
|
||||
cat .gitignore
|
||||
test -f .gitignore && cat .gitignore
|
||||
else
|
||||
for pattern in $@; do
|
||||
echo $pattern >> .gitignore
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test $# -gt 0; then
|
||||
echo "... releasing $1"
|
||||
git commit -a -m "Release $1" \
|
||||
&& git tag "$1" \
|
||||
&& git push \
|
||||
&& git push --tags \
|
||||
&& echo "... complete"
|
||||
else
|
||||
echo "tag required" && exit 1
|
||||
fi
|
||||
tagname="$1"
|
||||
|
||||
test -z "$tagname" && echo "tag required" && exit 1
|
||||
|
||||
echo "... releasing $tagname"
|
||||
git tag -a "$tagname" -m "Release $tagname" \
|
||||
&& git push --tags \
|
||||
&& echo "... complete"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
dir=${1-.}
|
||||
cd $dir \
|
||||
dir=$(test -z "$*" && echo "." || echo "$*")
|
||||
mkdir -p "$dir" \
|
||||
&& cd "$dir" \
|
||||
&& git init \
|
||||
&& git add . \
|
||||
&& git commit -m 'Initial commit'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
filename=$1
|
||||
filename="$*"
|
||||
|
||||
test -z $filename && echo "filename required" && exit 1
|
||||
test -z "$filename" && echo "filename required" && exit 1
|
||||
|
||||
touch $filename \
|
||||
&& git add $filename
|
||||
touch "$filename" \
|
||||
&& git add "$filename"
|
||||
|
|
|
|||
84
man/git-alias.1
Normal file
84
man/git-alias.1
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
.\" generated with Ronn/v0.7.3
|
||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||
.
|
||||
.TH "GIT\-ALIAS" "1" "March 2011" "" "Git Extras"
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBgit\-alias\fR \- Define, search and show aliases
|
||||
.
|
||||
.SH "SYNOPSIS"
|
||||
\fBgit\-alias\fR [<alias\-name> <command>]|[<search\-term>]
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
.
|
||||
.SH "OPTIONS"
|
||||
<alias\-name>
|
||||
.
|
||||
.P
|
||||
The name of the alias to create\.
|
||||
.
|
||||
.P
|
||||
<command>
|
||||
.
|
||||
.P
|
||||
The command for which you are creating an alias\.
|
||||
.
|
||||
.P
|
||||
<search\-term>
|
||||
.
|
||||
.P
|
||||
The pattern used for search aliases\.
|
||||
.
|
||||
.SH "EXAMPLES"
|
||||
Defining a new alias:
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git alias last "cat\-file commit HEAD"
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.P
|
||||
Providing only one argument, \fBgit\-alias\fR searchs for aliases matching the given value:
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git alias ^la
|
||||
last = cat\-file commit HEAD
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.P
|
||||
\fBgit\-alias\fR will show all aliases if no argument is given:
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git alias
|
||||
s = status
|
||||
amend = commit \-\-amend
|
||||
rank = shortlog \-sn \-\-no\-merges
|
||||
whatis = show \-s \-\-pretty=\'tformat:%h (%s, %ad)\' \-\-date=short
|
||||
whois = !sh \-c \'git log \-i \-1 \-\-pretty="format:%an <%ae>
|
||||
.
|
||||
.fi
|
||||
.
|
||||
.IP "" 0
|
||||
.
|
||||
.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>
|
||||
141
man/git-alias.1.html
Normal file
141
man/git-alias.1.html
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-alias(1) - Define, search and show aliases</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
||||
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
||||
.mp h2 {margin:10px 0 0 0}
|
||||
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
||||
.mp h3 {margin:0 0 0 4ex}
|
||||
.mp dt {margin:0;clear:left}
|
||||
.mp dt.flush {float:left;width:8ex}
|
||||
.mp dd {margin:0 0 0 9ex}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
||||
.mp pre {margin-bottom:20px}
|
||||
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
||||
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
||||
.mp img {display:block;margin:auto}
|
||||
.mp h1.man-title {display:none}
|
||||
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
||||
.mp h2 {font-size:16px;line-height:1.25}
|
||||
.mp h1 {font-size:20px;line-height:2}
|
||||
.mp {text-align:justify;background:#fff}
|
||||
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
||||
.mp u {text-decoration:underline}
|
||||
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
||||
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
||||
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
||||
.mp b.man-ref {font-weight:normal;color:#434241}
|
||||
.mp pre {padding:0 4ex}
|
||||
.mp pre code {font-weight:normal;color:#434241}
|
||||
.mp h2+pre,h3+pre {padding-left:0}
|
||||
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
||||
ol.man-decor {width:100%}
|
||||
ol.man-decor li.tl {text-align:left}
|
||||
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
||||
ol.man-decor li.tr {text-align:right;float:right}
|
||||
</style>
|
||||
</head>
|
||||
<!--
|
||||
The following styles are deprecated and will be removed at some point:
|
||||
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
||||
|
||||
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
||||
.man-navigation should be used instead.
|
||||
-->
|
||||
<body id='manpage'>
|
||||
<div class='mp' id='man'>
|
||||
|
||||
<div class='man-navigation' style='display:none'>
|
||||
<a href="#NAME">NAME</a>
|
||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
||||
<a href="#DESCRIPTION">DESCRIPTION</a>
|
||||
<a href="#OPTIONS">OPTIONS</a>
|
||||
<a href="#EXAMPLES">EXAMPLES</a>
|
||||
<a href="#AUTHOR">AUTHOR</a>
|
||||
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||
</div>
|
||||
|
||||
<ol class='man-decor man-head man head'>
|
||||
<li class='tl'>git-alias(1)</li>
|
||||
<li class='tc'>Git Extras</li>
|
||||
<li class='tr'>git-alias(1)</li>
|
||||
</ol>
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-alias</code> - <span class="man-whatis">Define, search and show aliases</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-alias</code> [<alias-name> <command>]|[<search-term>]</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<h2 id="OPTIONS">OPTIONS</h2>
|
||||
|
||||
<p> <alias-name></p>
|
||||
|
||||
<p> The name of the alias to create.</p>
|
||||
|
||||
<p> <command></p>
|
||||
|
||||
<p> The command for which you are creating an alias.</p>
|
||||
|
||||
<p> <search-term></p>
|
||||
|
||||
<p> The pattern used for search aliases.</p>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<p> Defining a new alias:</p>
|
||||
|
||||
<pre><code>$ git alias last "cat-file commit HEAD"
|
||||
</code></pre>
|
||||
|
||||
<p> Providing only one argument, <code>git-alias</code> searchs for aliases matching the given value:</p>
|
||||
|
||||
<pre><code>$ git alias ^la
|
||||
last = cat-file commit HEAD
|
||||
</code></pre>
|
||||
|
||||
<p> <code>git-alias</code> will show all aliases if no argument is given:</p>
|
||||
|
||||
<pre><code>$ git alias
|
||||
s = status
|
||||
amend = commit --amend
|
||||
rank = shortlog -sn --no-merges
|
||||
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
|
||||
whois = !sh -c 'git log -i -1 --pretty="format:%an <%ae>
|
||||
</code></pre>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Jonhnny Weslley <<a href="mailto:jw@jonhnnyweslley.net" data-bare-link="true">jw@jonhnnyweslley.net</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras/issues" data-bare-link="true">http://github.com/visionmedia/git-extras/issues</a>></p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras" data-bare-link="true">http://github.com/visionmedia/git-extras</a>></p>
|
||||
|
||||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-alias(1)</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
56
man/git-alias.md
Normal file
56
man/git-alias.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
git-alias(1) -- Define, search and show aliases
|
||||
===============================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`git-alias` [<alias-name> <command>]|[<search-term>]
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
||||
## OPTIONS
|
||||
|
||||
<alias-name>
|
||||
|
||||
The name of the alias to create.
|
||||
|
||||
<command>
|
||||
|
||||
The command for which you are creating an alias.
|
||||
|
||||
<search-term>
|
||||
|
||||
The pattern used for search aliases.
|
||||
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
Defining a new alias:
|
||||
|
||||
$ git alias last "cat-file commit HEAD"
|
||||
|
||||
Providing only one argument, `git-alias` searchs for aliases matching the given value:
|
||||
|
||||
$ git alias ^la
|
||||
last = cat-file commit HEAD
|
||||
|
||||
`git-alias` will show all aliases if no argument is given:
|
||||
|
||||
$ git alias
|
||||
s = status
|
||||
amend = commit --amend
|
||||
rank = shortlog -sn --no-merges
|
||||
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
|
||||
whois = !sh -c 'git log -i -1 --pretty="format:%an <%ae>
|
||||
|
||||
## 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>>
|
||||
36
man/git-create-branch.1
Normal file
36
man/git-create-branch.1
Normal file
|
|
@ -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 <branchname>
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
Creates local and remote branch named <branchname>\.
|
||||
.
|
||||
.SH "OPTIONS"
|
||||
<branchname>
|
||||
.
|
||||
.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>
|
||||
117
man/git-create-branch.1.html
Normal file
117
man/git-create-branch.1.html
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-create-branch(1) - Create branches</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
||||
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
||||
.mp h2 {margin:10px 0 0 0}
|
||||
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
||||
.mp h3 {margin:0 0 0 4ex}
|
||||
.mp dt {margin:0;clear:left}
|
||||
.mp dt.flush {float:left;width:8ex}
|
||||
.mp dd {margin:0 0 0 9ex}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
||||
.mp pre {margin-bottom:20px}
|
||||
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
||||
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
||||
.mp img {display:block;margin:auto}
|
||||
.mp h1.man-title {display:none}
|
||||
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
||||
.mp h2 {font-size:16px;line-height:1.25}
|
||||
.mp h1 {font-size:20px;line-height:2}
|
||||
.mp {text-align:justify;background:#fff}
|
||||
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
||||
.mp u {text-decoration:underline}
|
||||
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
||||
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
||||
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
||||
.mp b.man-ref {font-weight:normal;color:#434241}
|
||||
.mp pre {padding:0 4ex}
|
||||
.mp pre code {font-weight:normal;color:#434241}
|
||||
.mp h2+pre,h3+pre {padding-left:0}
|
||||
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
||||
ol.man-decor {width:100%}
|
||||
ol.man-decor li.tl {text-align:left}
|
||||
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
||||
ol.man-decor li.tr {text-align:right;float:right}
|
||||
</style>
|
||||
</head>
|
||||
<!--
|
||||
The following styles are deprecated and will be removed at some point:
|
||||
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
||||
|
||||
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
||||
.man-navigation should be used instead.
|
||||
-->
|
||||
<body id='manpage'>
|
||||
<div class='mp' id='man'>
|
||||
|
||||
<div class='man-navigation' style='display:none'>
|
||||
<a href="#NAME">NAME</a>
|
||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
||||
<a href="#DESCRIPTION">DESCRIPTION</a>
|
||||
<a href="#OPTIONS">OPTIONS</a>
|
||||
<a href="#EXAMPLES">EXAMPLES</a>
|
||||
<a href="#AUTHOR">AUTHOR</a>
|
||||
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||
</div>
|
||||
|
||||
<ol class='man-decor man-head man head'>
|
||||
<li class='tl'>git-create-branch(1)</li>
|
||||
<li class='tc'>Git Extras</li>
|
||||
<li class='tr'>git-create-branch(1)</li>
|
||||
</ol>
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-create-branch</code> - <span class="man-whatis">Create branches</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-create-branch</code> <branchname></p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<p> Creates local and remote branch named <branchname>.</p>
|
||||
|
||||
<h2 id="OPTIONS">OPTIONS</h2>
|
||||
|
||||
<p> <branchname></p>
|
||||
|
||||
<p> The name of the branch to create.</p>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<pre><code>$ git create-branch integration
|
||||
</code></pre>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Jonhnny Weslley <<a href="mailto:jw@jonhnnyweslley.net" data-bare-link="true">jw@jonhnnyweslley.net</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras/issues" data-bare-link="true">http://github.com/visionmedia/git-extras/issues</a>></p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras" data-bare-link="true">http://github.com/visionmedia/git-extras</a>></p>
|
||||
|
||||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>February 2011</li>
|
||||
<li class='tr'>git-create-branch(1)</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
man/git-create-branch.md
Normal file
32
man/git-create-branch.md
Normal file
|
|
@ -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 <<jw@jonhnnyweslley.net>>
|
||||
|
||||
## REPORTING BUGS
|
||||
|
||||
<<http://github.com/visionmedia/git-extras/issues>>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
<<http://github.com/visionmedia/git-extras>>
|
||||
Loading…
Reference in a new issue