Skip to content

Instantly share code, notes, and snippets.

@listenrightmeow
Last active April 16, 2024 04:17
Show Gist options
  • Save listenrightmeow/626a9c43f388a102c0956a05bfa4738d to your computer and use it in GitHub Desktop.
Save listenrightmeow/626a9c43f388a102c0956a05bfa4738d to your computer and use it in GitHub Desktop.
[user]
name = listenrightmeow
email =
signingkey =
[alias]
all = !git branch -a | grep
br = checkout -b
ba = branch --all
changelog = !git log $1...$2 --pretty=format:'- %s' --abbrev-commit --no-merges
co = checkout
d = diff --color
db = branch -D
do = push -d
empty = "!sh -c 'git switch --orphan $0 && git commit --allow-empty -m \"empty commit\" && git rebase --onto master $0 && git push -u origin $0'"
fp = fetch -p origin
la = log -1 --no-merges --pretty=format:'%Cgreen(%cr) %C(bold blue)<%an>%Creset'
last = log -1 HEAD
lc = log --branches --not --remotes --simplify-by-decoration --decorate --oneline
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
mb = merge --no-ff
p = remote prune origin
qs = ! /usr/local/bin/git-quick-stats
smu= submodule update --depth 1 --init --remote
st = status
sub = submodule update --rebase --remote
undo = reset --hard
[merge]
tool = opendiff
[diff]
tool = opendiff
submodule = log
[core]
excludesfile = /Users/__/.gitignore_global
quotepath = off
editor = "code --wait"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
ui = true
[gitflow "branch"]
master = main
develop = develop
[pull]
default = current
ff = only
[push]
default = current
[fetch]
prune = true
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
[mergetool]
keepBackup = false
[gpg]
program = gpg
[commit]
gpgsign = true
[init]
defaultbranch = main
[status]
submoduleSummary = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment