Skip to content

Instantly share code, notes, and snippets.

View erikeckhardt's full-sized avatar

Erik Eckhardt erikeckhardt

  • Washingon State, USA
View GitHub Profile
@erikeckhardt
erikeckhardt / .gitconfig
Last active June 11, 2025 17:14
git config
[branch]
autosetuprebase = always
[alias]
hist = log --color --graph --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue) %an %Creset %G?' --abbrev-commit
hist2 = log --color --graph --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci)%C(bold blue) %an %Creset %G?' --abbrev-commit
ref = log --walk-reflogs --format='%C(auto)%h %Cgreen%gd %C(yellow)%d%Creset %gs' --date=iso
ref3 = log --walk-reflogs --date=iso --oneline
ref2 = reflog --format='%C(auto)%h %Cgreen%gd %C(yellow)%d%Creset %gs' -g @{now}
accept-ours = "!f() { git checkout --ours -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"
accept-theirs = "!f() { git checkout --theirs -- \"${@:-.}\"; git add -u \"${@:-.}\"; }; f"