Skip to content

Instantly share code, notes, and snippets.

@trinhduyhung
Forked from tdd/gitconfig.ini
Created July 19, 2020 11:01
Show Gist options
  • Select an option

  • Save trinhduyhung/4929b4162d3299d46ac75b35e8e6d434 to your computer and use it in GitHub Desktop.

Select an option

Save trinhduyhung/4929b4162d3299d46ac75b35e8e6d434 to your computer and use it in GitHub Desktop.
Nice, useful global Git configuration
[user]
name = Ton Nom
email = [email protected]
[color]
ui = auto
[alias]
st = status
ci = commit
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset'
[core]
pager = cat
# Pas de bol et sous Windows ? Supposons que tu as tout de même Notepad++…
# editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
# If you want to use Sublime Text 2's subl wrapper:
# editor = 'subl -w'
whitespace = -trailing-space
[diff]
wordRegex = .
[fetch]
recurseSubmodules = on-demand
[grep]
extendedRegexp = true
[log]
abbrevCommit = true
[merge]
conflictStyle = diff3
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[pull]
rebase = true
[push]
default = upstream
[status]
submoduleSummary = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment