Added git aliases.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
cd70a05b66
commit
4dec622143
@ -20,6 +20,12 @@ alias gh="github"
|
|||||||
alias +x="chmod +x"
|
alias +x="chmod +x"
|
||||||
alias x+="chmod +x"
|
alias x+="chmod +x"
|
||||||
|
|
||||||
|
# Git
|
||||||
|
alias gs="git status"
|
||||||
|
alias gd="git diff"
|
||||||
|
alias gds="git diff --staged"
|
||||||
|
alias gc="git commit -sv"
|
||||||
|
|
||||||
# Detect which `ls` flavor is in use
|
# Detect which `ls` flavor is in use
|
||||||
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
||||||
colorflag="--color"
|
colorflag="--color"
|
||||||
@ -96,10 +102,6 @@ alias sayit="pbpaste | say"
|
|||||||
alias npm-patch='npm version patch -m "%s"'
|
alias npm-patch='npm version patch -m "%s"'
|
||||||
alias npm-release='npm version minor -m "%s"'
|
alias npm-release='npm version minor -m "%s"'
|
||||||
|
|
||||||
# Grunt
|
|
||||||
alias gw="grunt watch --debug"
|
|
||||||
alias gs="grunt connect watch --debug"
|
|
||||||
|
|
||||||
# Tâmia
|
# Tâmia
|
||||||
tm() { yo tamia:$@; }
|
tm() { yo tamia:$@; }
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
old = red bold
|
old = red bold
|
||||||
new = green bold
|
new = green bold
|
||||||
[core]
|
[core]
|
||||||
editor = nano
|
editor = vim
|
||||||
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
|
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
|
||||||
# If doesn't work, try: pager = less -+$LESS -FRX
|
# If doesn't work, try: pager = less -+$LESS -FRX
|
||||||
pager = less -r
|
pager = less -r
|
||||||
@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
# Any GitHub repo with my username should be checked out r/w by default
|
# Any GitHub repo with my username should be checked out r/w by default
|
||||||
# http://rentzsch.tumblr.com/post/564806957/public-but-hackable-git-submodules
|
# http://rentzsch.tumblr.com/post/564806957/public-but-hackable-git-submodules
|
||||||
[url "git@github.com:sapegin/"]
|
[url "git@github.com:jacobkiers/"]
|
||||||
insteadOf = "git://github.com/sapegin/"
|
insteadOf = "git://github.com/jacobkiers/"
|
||||||
|
|
||||||
# URL shorthands
|
# URL shorthands
|
||||||
[url "git@github.com:"]
|
[url "git@github.com:"]
|
||||||
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
# Include local settings
|
# Include local settings
|
||||||
# Requires Git 1.7.10
|
# Requires Git 1.7.10
|
||||||
# git config -f ~/.gitlocal user.email "artem@sapegin.ru"
|
# git config -f ~/.gitlocal user.email "jacob@jacobkiers.net"
|
||||||
# git config -f ~/.gitlocal user.name "Artem Sapegin"
|
# git config -f ~/.gitlocal user.name "Jacob Kiers"
|
||||||
[include]
|
[include]
|
||||||
path = .gitlocal
|
path = .gitlocal
|
||||||
|
Loading…
Reference in New Issue
Block a user