Skip to content

Instantly share code, notes, and snippets.

@typable
Last active June 27, 2023 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typable/c255c85cdcf98a8671dc23ddcb9d4d9c to your computer and use it in GitHub Desktop.
Save typable/c255c85cdcf98a8671dc23ddcb9d4d9c to your computer and use it in GitHub Desktop.
[init]
defaultBranch = main
[user]
name = typable
email = contact@typable.dev
[alias]
st = status -sb
cm = commit -m
co = checkout
cp = cherry-pick
ap = add -p
cob = checkout -b
brd = branch -D
br = branch --format=' %(color:yellow)%(HEAD)%(color:reset) %(color:blue)%(refname:short)%(color:reset) %(contents:subject) - %(color:green)%(authorname)%(color:reset)' --sort=-committerdate
ll = log --abbrev-commit --format='%C(blue)%h%C(reset) %C(yellow)%d%C(reset) %s - %C(green)(%cr) [%an]%C(reset)'
lg = log --graph --abbrev-commit --format='%C(blue)%h%C(reset) %C(yellow)%d%C(reset) %s - %C(green)(%cr) [%an]%C(reset)'
lf = log --follow --abbrev-commit --format='%C(blue)%h%C(reset) %C(yellow)%d%C(reset) %s - %C(green)(%cr) [%an]%C(reset)'
df = diff
c = commit
p = pull
f = fetch
save = !git add -A && git commit -m 'chore: commit save point'
undo = reset HEAD~1 --mixed
wipe = !git restore .
erase = !git reset --hard
done = !git push origin HEAD
unstage = !git reset
[pull]
rebase = false
[credential]
helper = store
[core]
editor = hx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment