Last active
November 7, 2018 21:30
-
-
Save pierrejean-coudert/99b191a3faaec032ae7c to your computer and use it in GitHub Desktop.
Git Alias in GitConfig
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] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit | |
s = status -s | |
c = commit | |
co = checkout | |
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'" | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
f = fetch --prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment