Created
October 10, 2018 15:21
-
-
Save danboykis/c6d0aff722750ebd66efd231fc134361 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
[includeIf "gitdir:~/projects/work/"] | |
path = ~/.work/.gitconfig | |
[includeIf "gitdir:~/personal/"] | |
path = ~/.personal/.gitconfig | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit | |
rco = "!f() { REGEX=$1; shift; git checkout \"$@\" \"$(git branch --all | cut -c 3- | sed 's|^remotes/.*/||' | grep -m 1 -iEe \"$REGEX\" )\"; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment