Skip to content

Instantly share code, notes, and snippets.

@JoseHdez2
Created October 23, 2019 11:44
Show Gist options
  • Save JoseHdez2/5e88a14ea05b278a41359d1b03893aca to your computer and use it in GitHub Desktop.
Save JoseHdez2/5e88a14ea05b278a41359d1b03893aca to your computer and use it in GitHub Desktop.
Git config with aliases
[alias]
alias = config --get-regexp ^alias\\.
co = checkout
cob = checkout -b
logtree = log --all --decorate --oneline --graph
logi = log --oneline
c = commit -m
ac = commit -am
cp = cherry-pick
b = branch
bd = branch -D
s = status
currentBranch = "!git rev-parse --abbrev-ref HEAD"
pl = "!git pull origin $(git currentBranch)"
ps = "!git push origin $(git currentBranch)"
fp = "!git fetch --prune --all"
[core]
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment