Skip to content

Instantly share code, notes, and snippets.

@eib
Last active July 30, 2022 21:16
Show Gist options
  • Save eib/4abdd18f8e53cf069262e77b32d485ee to your computer and use it in GitHub Desktop.
Save eib/4abdd18f8e53cf069262e77b32d485ee to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Ethan Blackwelder
email = [email protected]
[mergetool]
keepBackup = false
[core]
autocrlf = true
#editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe'
editor = nano
[alias]
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
glog = "log --graph --all --decorate-refs-exclude='refs/tags/build/*/*' --decorate-refs-exclude='refs/tags/pointer/*/*'"
undo = "checkout --"
track = "checkout --track"
cherrypick = "cherry-pick"
[log]
date = relative
[format]
pretty = format:%C(yellow)%h %C(magenta)%ad%C(auto)%d%Creset %s %C(dim green)(%ae)%Creset
[color]
ui = true
# status = auto
[color "status"]
added = green
changed = yellow
untracked = red
nobranch = red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment