Created
March 11, 2020 18:32
-
-
Save tmilewski/858668c082fe79dc724f7a5cfeda9718 to your computer and use it in GitHub Desktop.
New 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
git config --global alias.gl 'pull --prune' | |
git config --global alias.gp 'push origin HEAD' | |
git config --global alias.lg 'log --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative' | |
git config --global alias.gd 'diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r' | |
git config --global alias.c 'commit' | |
git config --global alias.ca 'commit -a' | |
git config --global alias.co 'checkout' | |
git config --global alias.cb 'copy-branch-name' | |
git config --global alias.b 'branch' | |
git config --global alias.s 'status -sb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment