Last active
February 24, 2022 01:03
-
-
Save rafa-thayto/c62cf6b94311a040d4499ae3ca0be395 to your computer and use it in GitHub Desktop.
.gitconfig alias
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] | |
| a = add | |
| co = checkout | |
| sw = switch | |
| ci = commit | |
| st = status | |
| br = branch | |
| ps = push | |
| ac = "!git add . && git commit -m" | |
| fp = "!git fetch && git pull && git push" | |
| fpp = "!git fetch && git pull && git push" | |
| hist = "log --pretty=format:\'%h %ad | %s%d [%an]\' --graph --date=short" | |
| // global configs alias | |
| git config --global alias.a add | |
| git config --global alias.co checkout | |
| git config --global alias.sw switch | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.br branch | |
| git config --global alias.ps push | |
| git config --global alias.ac "!git add . && git commit -m" | |
| git config --global alias.fp "!git fetch && git pull" | |
| git config --global alias.fpp "!git fetch && git pull && git push" | |
| git config --global alias.hist "log --pretty=format:\'%h %ad | %s%d [%an]\' --graph --date=short" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment