Skip to content

Instantly share code, notes, and snippets.

@fbedussi
Created December 30, 2025 22:49
Show Gist options
  • Select an option

  • Save fbedussi/c36118b061752f2753e43d5f2e328902 to your computer and use it in GitHub Desktop.

Select an option

Save fbedussi/c36118b061752f2753e43d5f2e328902 to your computer and use it in GitHub Desktop.
gitconfig 2025
[user]
name = Francesco Bedussi
email = francesco@francescobedussi.it
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
tree = !git lg1
lg = log --graph --oneline --decorate --all --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lgb = log --graph --oneline --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
mgt = mergetool --tool bc3
s = status
a = add
aa = add .
c = commit -m
d = diff
ps = push
pl = pull
mt = mergetool
f = fetch
sa = stash
sp = stash pop
mod = merge origin/develop
mom = merge origin/master
lab = branch -la
amend = commit --amend
fixup = commit --amend --no-edit
st = status -sb
co = checkout
cob = checkout -b
cp = cherry-pick
last = log -1 HEAD
unstage = reset HEAD --
r1 = reset HEAD^
r2 = reset HEAD^^
rh = reset HEAD --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
g = grep --break --heading --line-number
ec = config --global -e
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
undo = reset HEAD^ --mixed
wip = !git add -u && git commit -m 'WIP'
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[help]
autocorrect = 1
[rerere]
enabled = 1
[cola]
spellcheck = false
[core]
excludesfile = /Users/francescobedussi/.gitignore_global
pager = less -FRX
[commit]
template = /Users/fbedussi/.stCommitMsg
[init]
defaultBranch = development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment