Your ~/.gitconfig says a lot about your git setup. π I am wondering what Hashnoders have got stashed in their ~/.gitconfig files. Share them here
Here's mine:
[user]
name = stephan281094
email = ...
signingkey = ...
[push]
default = simple
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[core]
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
br = branch
co = checkout
c = commit
d = diff
f = fetch
p = push
s = status
st = status
As you can see I'm using diff-so-fancy for displaying beautiful diffs!
[name]
...
...
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[mergetool]
keepBackup = true
I don't remember when I created that file nor do I remember yet what problem I tried to solve but this is the content of my git config here at home. Maybe I just copied and pasted the values from kaleidoscope support web page because that is my merge tool on macOS.
[user]
name = Mike Sprague
email = ...
signingkey = ...
[core]
symlinks = true
autocrlf = true
longpaths = true
[alias]
co = checkout
st = status
br = branch
ci = commit
cia = commit --amend
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
s = status -s
lg = log --oneline --decorate --all --graph
pom = push origin master
[filter "lfs"]
required = true
clean = git-lfs clean %f
smudge = git-lfs smudge %f
[pull]
rebase = true
[rerere]
enabled = true
[color]
ui = true
[commit]
gpgsign = true
Here is an excerpt of my .gitconfig
[alias]
last = log -1 --stat
cp = cherry-pick
co = checkout
cl = clone
cb = checkout -b
ci = commit
st = status -sb
br = branch
unstage = reset HEAD --
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
ca = commit --amend
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
Nikos Roussos
Web Tech Lead @ Greenpeace
[alias] tree = log --oneline --decorate --graph ls = log --graph --pretty='%C(yellow)%h %ad%Cred%d %Creset%s%Cblue [%cn]' --abbrev-commit --date=short authors = shortlog -s -n -e [commit] gpgsign = true