Created
October 23, 2019 11:44
-
-
Save JoseHdez2/5e88a14ea05b278a41359d1b03893aca to your computer and use it in GitHub Desktop.
Git config with aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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