Created
August 10, 2020 12:25
-
-
Save gonzalezger/fba6073826159149e3758a325690438c to your computer and use it in GitHub Desktop.
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] | |
# one-line log | |
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
ls = ls-files | |
a = add | |
al = add . | |
ap = add -p | |
au = add -u | |
ci = commit --verbose | |
cia = commit -a --verbose | |
cm = commit -m | |
ciam = commit -a -m | |
m = commit --amend --verbose | |
br = branch | |
# list branches sorted by last modified | |
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'" | |
d = diff --word-diff | |
df = diff | |
ds = diff --staged | |
dc = diff --cached | |
st = status -s | |
co = checkout | |
cob = checkout -b | |
unstage = reset HEAD | |
# Show files ignored by git: | |
ign = ls-files -o -i --exclude-standard | |
# list aliases | |
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