Skip to content

Instantly share code, notes, and snippets.

@tiagoamaro
Last active February 27, 2025 12:25
Show Gist options
  • Select an option

  • Save tiagoamaro/8994689 to your computer and use it in GitHub Desktop.

Select an option

Save tiagoamaro/8994689 to your computer and use it in GitHub Desktop.
Git Graph
# Configuration based on https://blog.gitbutler.com/how-git-core-devs-configure-git/
# Also, git graph idea from: https://coderwall.com/p/mlozoa
[alias]
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset'
[user]
email = TODO@REPLACE-EMAIL
name = Tiago Amaro
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[gui]
usettk = 0
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[diff]
tool = vscode
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[push]
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
[help]
autocorrect = prompt
[commit]
verbose = true
[rerere]
enabled = true
autoupdate = true
[core]
editor = code --wait
excludesfile = ~/.gitignore
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment