Skip to content

Instantly share code, notes, and snippets.

@tomoglavas
Created March 17, 2024 14:00
Show Gist options
  • Select an option

  • Save tomoglavas/ed18815e7514fe7eb74e47a1ee057bf0 to your computer and use it in GitHub Desktop.

Select an option

Save tomoglavas/ed18815e7514fe7eb74e47a1ee057bf0 to your computer and use it in GitHub Desktop.
.gitconfig (colors & shortcuts)
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
a = add
g = git
s = status
b = branch
co = checkout
c = commit
d = diff
r = reset
quicklog = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\"
changes = log --pretty=oneline
l = log --pretty=short --decorate=short --graph
ll = log --decorate --stat --graph --pretty=format:'%C(yellow)%h%Creset (%ar - %Cred%an>
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment