Skip to content

Instantly share code, notes, and snippets.

@RonanGil
Last active January 2, 2023 20:18
Show Gist options
  • Save RonanGil/cf0c54a20529ee888bb73c9a659aa81d to your computer and use it in GitHub Desktop.
Save RonanGil/cf0c54a20529ee888bb73c9a659aa81d to your computer and use it in GitHub Desktop.
[color]
ui = true
grep = auto
diff = auto
pager = true
status = true
branch = auto
interactive = auto
[color "status"]
added = green
changed = yellow
untracked = red
[color "branch"]
remote = red
current = white
[color "diff"]
old = red
new = green
meta = yellow
deleted = red
[color "grep"]
match = yellow bold
filename = magenta
separator = cyan
linenumber = green
[pretty]
resumeline = %Cred%h%Creset %C(yellow)%>(21,trunc)%ci%x08%x08%Creset %Cgreen<%an>%Creset %s%C(auto)%d
[alias]
ci = cz
co = checkout
cm = checkout main
cb = checkout -b
push-b = push --set-upstream origin
st = status -sb
sf = show --name-only
lg = log --graph --pretty=resumeline --max-count=30
lg-f = "!f() { git log --pretty=resumeline --grep=\"$*\" --max-count=10; }; f"
incoming = !(git fetch --quiet && git log ..@{u})
outgoing = !(git fetch --quiet && git log @{u}..)
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~
msgback = commit -C ORIG_HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment