Skip to content

Instantly share code, notes, and snippets.

@hkorpi
Last active February 21, 2017 11:40
Show Gist options
  • Save hkorpi/9d8aebd262eb9bcead62133cce1dff22 to your computer and use it in GitHub Desktop.
Save hkorpi/9d8aebd262eb9bcead62133cce1dff22 to your computer and use it in GitHub Desktop.
git configuration
#!/bin/bash
# this configuration contains my personal git config - this can be executed using curl:
# source <(curl -s https://gist.githubusercontent.com/hkorpi/9d8aebd262eb9bcead62133cce1dff22/raw/7bce1670c14b58e5e64936f704cb17b5fd10a228/git-config.sh)
# use vi as default git editor
git config --global core.editor vi
# a better git log - https://coderwall.com/p/euwpig/a-better-git-log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment