My .gitconfig and .gitignore files
Mon, 30 March 2020
My .gitconfig file.
[user]
name = Roger Thomas
email = <my>@example.com
[core]
excludesfile = /Users/me/.gitignore
editor = nano
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[push]
default = current
[status]
branch = 0
short = 0
[alias]
comit = commit
amend = commit --amend -C HEAD
pl = pull
swap = remote set-url origin
ft = fetch
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)(%an <%ae>)%Creset' --abbrev-commit --date=relative
tlg = log --tags --simplify-by-decoration --pretty=format:'%ai %d'
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)'
sync = remote prune origin
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[http]
sslverify = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
My .gitignore file:
.buildpath .settings .project .vagrant deployment.properties .pyc .DS_Store