Skip to content

replaced random few custom git command with git-extras repo and added z #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions git-extras
Submodule git-extras added at 86a102
32 changes: 0 additions & 32 deletions git-info

This file was deleted.

53 changes: 0 additions & 53 deletions git-untrack-ignored

This file was deleted.

2 changes: 0 additions & 2 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
type = cat-file -t
dump = cat-file -p

untrack-ignored = !git-untracked-ignored
info = !git-info
amend = commit --amend -C HEAD
tree = log --graph --pretty=oneline
hist = log --graph --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %C(magenta)[%an]%Creset %Cgreen(%ad)%Creset' --date=relative
Expand Down
46 changes: 42 additions & 4 deletions install.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
_vimrc => '_vimrc',
gvimrc => '.gvimrc',

man => '.man',

emacsrc => '.emacs',
emacs => '.emacsdir',

Expand Down Expand Up @@ -85,13 +87,49 @@

tigrc => '.tigrc',

caffeinate => 'bin/caffeinate',
'acm/caffeinate' => 'bin/caffeinate',
lock => 'bin/lock',

'git-info' => 'bin/git-info',
'git-untrack-ignored' => 'bin/git-untracked-ignored',

gdbinit => '.gdbinit',

# z (https://github.com/rupa/z)
'z/z.sh' => 'bin/z.sh',
'z/z.1' => '.man/z.1',

# git extras (https://github.com/visionmedia/git-extras)
'git-extras/bin/git-alias' => 'bin/git-alias',
'git-extras/bin/git-back' => 'bin/git-back',
'git-extras/bin/git-bug' => 'bin/git-bug',
'git-extras/bin/git-changelog' => 'bin/git-changelog',
'git-extras/bin/git-commits-since' => 'bin/git-commits-since',
'git-extras/bin/git-contrib' => 'bin/git-contrib',
'git-extras/bin/git-count' => 'bin/git-count',
'git-extras/bin/git-create-branch' => 'bin/git-create-branch',
'git-extras/bin/git-delete-branch' => 'bin/git-delete-branch',
'git-extras/bin/git-delete-merged-branches' => 'bin/git-delete-merged-branches',
'git-extras/bin/git-delete-submodule' => 'bin/git-delete-submodule',
'git-extras/bin/git-delete-tag' => 'bin/git-delete-tag',
'git-extras/bin/git-effort' => 'bin/git-effort',
'git-extras/bin/git-extras' => 'bin/git-extras',
'git-extras/bin/git-feature' => 'bin/git-feature',
'git-extras/bin/git-fresh-branch' => 'bin/git-fresh-branch',
'git-extras/bin/git-gh-pages' => 'bin/git-gh-pages',
'git-extras/bin/git-graft' => 'bin/git-graft',
'git-extras/bin/git-ignore' => 'bin/git-ignore',
'git-extras/bin/git-info' => 'bin/git-info',
'git-extras/bin/git-local-commits' => 'bin/git-local-commits',
'git-extras/bin/git-obliterate' => 'bin/git-obliterate',
'git-extras/bin/git-pull-request' => 'bin/git-pull-request',
'git-extras/bin/git-refactor' => 'bin/git-refactor',
'git-extras/bin/git-release' => 'bin/git-release',
'git-extras/bin/git-rename-tag' => 'bin/git-rename-tag',
'git-extras/bin/git-repl' => 'bin/git-repl',
'git-extras/bin/git-setup' => 'bin/git-setup',
'git-extras/bin/git-show-tree' => 'bin/git-show-tree',
'git-extras/bin/git-squash' => 'bin/git-squash',
'git-extras/bin/git-summary' => 'bin/git-summary',
'git-extras/bin/git-touch' => 'bin/git-touch',
'git-extras/bin/git-undo' => 'bin/git-undo',
);

my $contained = (substr $scriptdir, 0, length($home)) eq $home;
Expand Down
84 changes: 84 additions & 0 deletions man/man1/git-alias.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.\" generated with Ronn/v0.7.3
.\" https://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-ALIAS" "1" "July 2012" "" ""
.
.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>
54 changes: 54 additions & 0 deletions man/man1/git-back.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.\" generated with Ronn/v0.7.3
.\" https://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-BACK" "1" "July 2012" "" ""
.
.SH "NAME"
\fBgit\-back\fR \- Undo and Stage latest commits
.
.SH "SYNOPSIS"
\fBgit\-back\fR [<commitcount>]
.
.SH "DESCRIPTION"
Removes the latest commits, and add their changes to your staging area\.
.
.SH "OPTIONS"
<commitcount>
.
.P
Number of commits to remove\. Defaults to \fI1\fR, thus remove the latest commit\.
.
.SH "EXAMPLES"
Removes the latest commit\.
.
.IP "" 4
.
.nf

$ git back
.
.fi
.
.IP "" 0
.
.P
Remove the latest 3 commits:
.
.IP "" 4
.
.nf

$ git back 3
.
.fi
.
.IP "" 0
.
.SH "AUTHOR"
Written by Kenneth Reitz <\fIme@kennethreitz\.com\fR>
.
.SH "REPORTING BUGS"
<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR>
.
.SH "SEE ALSO"
<\fIhttp://github\.com/visionmedia/git\-extras\fR>
47 changes: 47 additions & 0 deletions man/man1/git-bug.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.\" generated with Ronn/v0.7.3
.\" https://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-BUG" "1" "July 2012" "" ""
.
.SH "NAME"
\fBgit\-bug\fR \- Create bug branch
.
.SH "SYNOPSIS"
\fBgit\-bug\fR [finish] <name>
.
.SH "DESCRIPTION"
Create the given bug branch
.
.SH "OPTIONS"
<finish>
.
.P
Merge and delete the bug branch\.
.
.P
<name>
.
.P
The name of the bug branch\.
.
.SH "EXAMPLES"
.
.nf

$ git bug bug\-123456
\.\.\.
$ git commit \-m "Some changes"
\.\.\.
$ git checkout master
$ git bug finish bug\-123456
.
.fi
.
.SH "AUTHOR"
Written by Jesús Espino <\fIjespinog@gmail\.com\fR>
.
.SH "REPORTING BUGS"
<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR>
.
.SH "SEE ALSO"
<\fIhttp://github\.com/visionmedia/git\-extras\fR>
Loading