Skip to content

Instantly share code, notes, and snippets.

@cseeman
Created August 22, 2022 14:01
Show Gist options
  • Save cseeman/23b6adc822fec470cea411bb9e7defdd to your computer and use it in GitHub Desktop.
Save cseeman/23b6adc822fec470cea411bb9e7defdd to your computer and use it in GitHub Desktop.
Gitconfig
#
# ~/.gitconfig
#
[user]
name = Christine Seeman
mail =
email =
[alias]
st = status
d = diff
co = checkout
can = commit --amend --no-edit
cp = cherry-pick
dm = diff --patience master
b = branch
prb = pull --rebase
pf = push --force-with-lease
fo = fetch origin
ff = merge --ff-only
noff = merge --no-ff
nocom = merge --no-commit
rip = rebase --interactive --preserve-merges
l = log --graph --oneline
lb = log --graph --oneline --branches
ll = log --stat
lll = log -p
oops = reset --hard HEAD~1
up = pull --rebase --autostash
recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
remotes = remote -v
rhh = reset --hard HEAD
rh = reset --hard
stashes = stash list
unstash = stash pop
fixup = commit --fixup
wup = log --pretty=format:'%h %cn %cr %s' --graph --since=10.weeks
recent = branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"
#Typical Spelling snafu
checkou = checkout
statsh = stash
[core]
editor = nvim
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment