Last active
March 7, 2025 13:33
-
-
Save markahesketh/f340af3f8dd87ec12c460e3f2c050ca4 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Firstname Lastname | |
email = person@example.com | |
[alias] | |
aa = add --all | |
amend = commit -a --amend | |
br = branch | |
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes | |
ci = commit | |
cia = commit -a | |
cam = commit -a -m | |
cl = clone | |
co = checkout | |
cob = checkout -b | |
dc = diff --cached | |
diff = diff --word-diff | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
st = status -s | |
up = pull --rebase --prune | |
undo = reset HEAD~1 --mixed | |
p = push | |
poh = push origin HEAD | |
pom = pull origin master | |
pomr = pull origin master --rebase | |
pum = pull upstream master | |
pumr = pull upstream master --rebase | |
unstage = restore --staged | |
deploy = push production master | |
nah = "!f() { git clean -d -f; git reset --hard; }; f" | |
[color] | |
ui = true | |
[merge] | |
ff = true | |
[pull] | |
ff = only | |
[push] | |
default = simple | |
followTags = true | |
[core] | |
autocrlf = input | |
eol = lf | |
filemode = false | |
excludesfile = ~/.gitignore | |
editor = nano | |
[include] | |
path = ~/.gitconfig.local | |
[init] | |
defaultBranch = main | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment