Created
September 3, 2025 17:36
-
-
Save gregglind/df9d8b0434c2821bfb805117a01ede75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # This is Git's per-user configuration file. | |
| [user] | |
| name = Gregg Lind | |
| email = me@somewhere | |
| [alias] | |
| o = checkout # out | |
| i = commit # in | |
| im = commit -m # in with a message | |
| a = add | |
| au = add --update | |
| l = ls-files | |
| b = branch | |
| feature = checkout -b | |
| s = status # status | |
| si = status --ignored | |
| sh = show | |
| t = stash # sTash | |
| ta = stash apply | |
| d = diff | |
| dc = diff --cached | |
| log1 = log --oneline --all | |
| #up = pull --rebase origin main | |
| up = fetch origin main:main | |
| fa = fetch --all | |
| rmbranches = !git branch | grep -v "main" | xargs git branch -D | |
| amend = !git commit --amend --no-edit | |
| last = log -1 HEAD | |
| unstage = reset HEAD -- | |
| tree = log --oneline --decorate --all --graph | |
| cleanclean = clean -fXd | |
| root = !git rev-parse --show-toplevel | |
| r = root | |
| done = !git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs --no-run-if-empty git branch -vD | |
| delmerged = "!git branch --merged | grep -Ev '(^\\*|^\\+|master|main|dev)' | xargs --no-run-if-empty git branch -d" | |
| prc = "!gh pr create --fill-first && gh pr merge --auto --squash" | |
| pr = "!gh pr create --fill-first" | |
| # TODO, this doesn't work with flags :( | |
| pygrep = "! git grep -r "$1" -- '*.py'" | |
| [core] | |
| pager = less -F -X | |
| autocrlf = false | |
| excludesfile = /Users/glind/.gitignore | |
| [init] | |
| defaultBranch = main | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true | |
| [fetch] | |
| prune = true | |
| [includeIf "gitdir:~/somefolder"] | |
| path = ~/somefolder/.gitconfig | |
| [grep] | |
| lineNumber = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment