Skip to content

Instantly share code, notes, and snippets.

@FabienSalles
Last active March 4, 2024 23:12
Show Gist options
  • Save FabienSalles/b25a523a8d903e6b8ed303f18871671f to your computer and use it in GitHub Desktop.
Save FabienSalles/b25a523a8d903e6b8ed303f18871671f to your computer and use it in GitHub Desktop.
Simple Git Config
[user]
name = ton_nom
email = ton@email.tld
[color]
ui = true
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
last = log -1
wdiff = diff --color-words
[core]
excludesfile = ~/.gitignore_global
editor = nano
# Sous Windows ? Désolé... Utilisons Notepad++…
# editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
[includeIf "gitdir:~/projects/github/"]
path = .gitconfig-github
[credential]
helper = cache --timeout=360000
[pull]
rebase = true
[push]
default = simple
[diff]
wordRegex = .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment