Skip to content

Instantly share code, notes, and snippets.

@danboykis
Created October 10, 2018 15:21
Show Gist options
  • Save danboykis/c6d0aff722750ebd66efd231fc134361 to your computer and use it in GitHub Desktop.
Save danboykis/c6d0aff722750ebd66efd231fc134361 to your computer and use it in GitHub Desktop.
[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