A comprehensive collection of Git aliases designed to significantly boost your daily productivity.
- Shorter, memorable commands
- No need to type 'git' before each command
- Useful functions for combining common operations
- Git Flow support
- Custom aliases for common workflows
- Copy the content of
.bashrc-git-aliases
- Paste it at the end of your
~/.bashrc
(for Bash) or~/.zshrc
(for Zsh) - Reload your configuration:
source ~/.bashrc # for Bash # or source ~/.zshrc # for Zsh
gpush
- git pushgpull
- git pullgst
- git statusga
- git addgaa
- git add --allgcm "message"
- git commit -mgco
- git checkoutgb
- git branch
gac "message"
- add + commit in one stepgacp "message"
- add + commit + push in one stepgcob branch-name
- create and switch to new branchgpb branch-name
- push specific branch
Includes Git Flow aliases if you use it in your workflow:
gff
- git flow featuregfr
- git flow releasegfh
- git flow hotfix
Suggestions and improvements are welcome! Feel free to fork and submit pull requests.
MIT - Use it as you wish, share it with anyone.