Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save myrtleTree33/c7c031612f398c1e4913f13ff32ce6ee to your computer and use it in GitHub Desktop.
Save myrtleTree33/c7c031612f398c1e4913f13ff32ce6ee to your computer and use it in GitHub Desktop.
Gitconfig helpful aliases
[user]
name = Joel Tong
email = [email protected]
[core]
editor = nvim
ignorecase = false
[init]
defaultBranch = main
[push]
default = current
[alias]
co = checkout
ci = commit
st = status
br = branch
brc = branch --show-current
rb = rebase
fc = fetch
fcp = !git fetch && git rb origin/main
di = diff --color-words
cob = checkout -b
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
conflict = diff --name-only --diff-filter=U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment