Created
January 11, 2017 14:51
-
-
Save mikaa123/61f21a081001c886e96d2c4e101f9bfa to your computer and use it in GitHub Desktop.
git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
di = diff | |
dc = diff --cached | |
amend = commit --amend | |
aa = add --all | |
ff = merge --ff-only | |
pullff = pull --ff-only | |
noff = merge --no-ff | |
div = divergence | |
gn = goodness | |
gnc = goodness --cached | |
fa = fetch --all | |
pom = push origin master | |
b = branch | |
ds = diff --stat=160,120 | |
dh1 = diff HEAD~1 | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" | |
head = !git l -1 | |
h = !git head | |
hp = "!source ~/.githelpers && show_git_head" | |
r = !git l -30 | |
ra = !git r --all | |
l = "!source ~/.githelpers && pretty_git_log" | |
la = !git l --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment