Last active
August 29, 2015 14:00
-
-
Save nilsFK/15c3f9f80539bfaa4be2 to your computer and use it in GitHub Desktop.
GIT aliases
This file contains 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] | |
# Basic commands | |
ignored = git ls-files -v | grep \"^[[:lower:]]\" | |
st = status -s | |
stat = status | |
ci = commit | |
co = checkout | |
br = branch | |
brav = branch -av | |
unstage = reset HEAD -- | |
last = log -1 HEAD | |
cl = clone | |
filelog = log -u | |
ai = add --interactive | |
# Reset Commands | |
r = reset | |
# Stash Commands | |
sl = stash list | |
sa = stash apply | |
ss = stash save | |
# List and Log commands | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numst at | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%cn]" --decorate | |
# List commits that will be pushed | |
lulc = log origin/master..HEAD | |
lelulc = log origin/master..HEAD --oneline --decorate | |
# Starting with git 1.7.x we can use @{u} to refer to upstream | |
# First run: git branch --set-upstream foo origin/foo | |
# http://stackoverflow.com/questions/231211/using-git-how-do-i-find-changes-between-local-and-remote | |
incoming = log ..@{u} | |
outgoing = log@{u}.. | |
le = log --oneline --decorate | |
unadd = reset HEAD | |
# Meta Fluff | |
la = "!git config -l | grep alias | cut -c 7-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment