Skip to content

Instantly share code, notes, and snippets.

@adilsoncarvalho
Last active February 14, 2018 21:48
Show Gist options
  • Save adilsoncarvalho/8441031 to your computer and use it in GitHub Desktop.
Save adilsoncarvalho/8441031 to your computer and use it in GitHub Desktop.
basic git configuration
#!/bin/bash
git config --global color.ui true
git config --global core.editor vim
git config --global merge.ff false
git config --global pull.rebase true
git config --global alias.s 'status -sb'
git config --global alias.k 'log --graph --abbrev-commit --decorate --date=local --format=format:"%C(bold blue)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)%C(reset)%C(bold yellow)%d%C(reset) [%an]" --all'
git config --global alias.l 'log --graph --abbrev-commit --decorate --date=local --format=format:"%C(bold blue)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)%C(reset)%C(bold yellow)%d%C(reset) [%an]"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment