Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
f9509f36
Commit
f9509f36
authored
Dec 19, 2009
by
Martin Klepsch
Committed by
Robby Russell
Dec 27, 2009
Browse files
Putting Git related aliases into git.zsh to have them in context.
parent
90627d3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/aliases.zsh
View file @
f9509f36
...
...
@@ -25,21 +25,6 @@ alias ss='sudo su -'
#alias g='grep -in'
# Git related
alias
g
=
'git'
alias
gst
=
'git status'
alias
gl
=
'git pull'
alias
gup
=
'git fetch && git rebase'
alias
gp
=
'git push'
alias
gd
=
'git diff | mate'
alias
gdv
=
'git diff -w "$@" | vim -R -'
alias
gc
=
'git commit -v'
alias
gca
=
'git commit -v -a'
alias
gb
=
'git branch'
alias
gba
=
'git branch -a'
alias
gcount
=
'git shortlog -sn'
alias
gcp
=
'git cherry-pick'
# Show history
alias history
=
'fc -l 1'
...
...
@@ -65,4 +50,4 @@ alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Ra
alias
etts
=
'mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
# Editor Ruby file in TextMate
alias
mr
=
'mate CHANGELOG app config db lib public script spec test'
\ No newline at end of file
alias
mr
=
'mate CHANGELOG app config db lib public script spec test'
lib/git.zsh
View file @
f9509f36
...
...
@@ -20,3 +20,18 @@ function current_branch() {
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
return
echo
${
ref
#refs/heads/
}
}
# Aliases
alias
g
=
'git'
alias
gst
=
'git status'
alias
gl
=
'git pull'
alias
gup
=
'git fetch && git rebase'
alias
gp
=
'git push'
alias
gd
=
'git diff | mate'
alias
gdv
=
'git diff -w "$@" | vim -R -'
alias
gc
=
'git commit -v'
alias
gca
=
'git commit -v -a'
alias
gb
=
'git branch'
alias
gba
=
'git branch -a'
alias
gcount
=
'git shortlog -sn'
alias
gcp
=
'git cherry-pick'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment