Skip to content

Instantly share code, notes, and snippets.

@jbrzozoski
Created January 28, 2021 18:36
Show Gist options
  • Save jbrzozoski/48bbd2a4503bba301c2231322b411c87 to your computer and use it in GitHub Desktop.
Save jbrzozoski/48bbd2a4503bba301c2231322b411c87 to your computer and use it in GitHub Desktop.
My gitconfig template to make setting up new linux machines a little quicker
[user]
name = Set Name
email = set.email@example.com
[branch]
autosetuprebase = always
[core]
autocrlf = input
editor = nano
excludesfile = ~/.gitignore
[branch]
autosetuprebase = always
[merge]
conflictstyle = diff3
[alias]
conflicts = diff --name-only --diff-filter=U
lsb = branch -vv
lg = log --graph --pretty=format:\"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" --abbrev-commit --date=relative
lf = log --format="" --name-only
[push]
default = simple
[pull]
ff = only
[rerere]
enabled = true
[credential]
helper = cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment