Last active
August 14, 2019 01:23
-
-
Save tygor/f7e3fceaf9efee19706a2d0f781e55db to your computer and use it in GitHub Desktop.
Just a place to store my git config
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
# This is Git's per-user configuration file. | |
[user] | |
name = {{ YOUR NAME }} | |
email = {{ YOUR EMAIL }} | |
[alias] | |
au = add -u | |
ca = commit --amend --no-edit | |
cm = commit -m | |
co = checkout | |
f = fetch --all && git rebase origin/master | |
l1 = log --graph --oneline --decorate --all | |
lg = log --relative-date --graph --all --pretty=format:'%C(yellow)%h%Creset %C(green)%ad%Creset %C(white)%<(80,trunc)%s%Creset %C(white)- %an%Creset %C(bold yellow)%d%Creset' | |
lf = log --name-status --all --pretty=format:'%C(yellow)%h%Creset %s %C(green)%ad%Creset %C(cyan)<%ae>%Creset %C(bold yellow)%d%Creset' | |
n = checkout -b | |
r = reset HEAD -- | |
ra = reset HEAD | |
ru = remote update --prune | |
st = !echo "--- Log ------------------------------------------------------------------------" && echo "" && git lg -20 && echo "" && echo "--- Status ---------------------------------------------------------------------" && echo "" && git status | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment