Skip to content

Instantly share code, notes, and snippets.

View johanneserhardt's full-sized avatar

Johannes Erhardt johanneserhardt

View GitHub Profile

Keybase proof

I hereby claim:

  • I am johanneserhardt on github.
  • I am jerhardt (https://keybase.io/jerhardt) on keybase.
  • I have a public key ASDcs6vuZey9CjkZP1pdI2iJ4_eP7aXDw_Y4lwJZ8qWjuwo

To claim this, I am signing this object:

@johanneserhardt
johanneserhardt / gitlog
Last active March 7, 2017 13:15
Show the log of the local branches.
log --oneline --branches --no-walk --pretty=format:'%Cred%h%Creset -%C(bold yellow)%d%Creset %s %Cgreen(%cr) %C(red)<%an>%Creset' --abbrev-commit
@johanneserhardt
johanneserhardt / gist:4130354
Created November 22, 2012 10:07
bash alias
alias grep='grep --color=auto'
@johanneserhardt
johanneserhardt / gist:4118007
Created November 20, 2012 13:44
Shows branch name.
export PS1="\W \e[0;36m(\e[0;32m\$(git branch 2>/dev/null | grep -e '\*' | sed s/\*//g)\e[0;36m ):\e[0m "
@johanneserhardt
johanneserhardt / .gitconfig
Created November 20, 2012 08:25
.gitconfig
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(red)<%an>%Creset' --abbrev-commit --
ign = ls-files -o -i --exclude-standard
[github]
user = sayhelloje
[color]
ui = auto
diff = auto
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(red)<%an>%Creset' --abbrev-commit --