-
-
Save ntung/55f6a34e9bc1748d6b390ca77a3aa4b6 to your computer and use it in GitHub Desktop.
My current .gitconfig aliases
This file contains hidden or 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] | |
| co = checkout | |
| br = branch | |
| st = status | |
| aa = add -A . | |
| cm = commit -m | |
| aacm = !git add -A . && git commit -m | |
| amend = commit --amend -m | |
| dev = !git checkout dev && git pull origin dev | |
| staging = !git checkout staging && git pull origin staging | |
| master = !git checkout master && git pull origin | |
| po = push origin | |
| pod = push origin dev | |
| pos = push origin staging | |
| pom = push origin master | |
| poh = push origin HEAD | |
| plo = pull origin | |
| plod = pull origin dev | |
| plos = pull origin staging | |
| plom = pull origin master | |
| ploh = pull origin HEAD | |
| coo = fetch && checkout | |
| unstage = reset --soft HEAD^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment