Automatic installer for Git aliases to boost your terminal productivity. Install 27+ productivity Git aliases with a single command.
npm install -g git-alias-flow
gafThat's it! All aliases are now installed and ready to use.
- One-command installation - Install 27+ Git aliases instantly
- Cross-platform - Works on Mac, Windows, and Linux
- Zero configuration - No setup required, just install and run
- Customizable - Easy to edit aliases to match your workflow
- Productivity focused - Short, memorable aliases for daily Git operations
- Built-in help - Use
gaf hto see all available aliases
npm install -g git-alias-flowAfter installation, run:
gafThe command will automatically install all Git aliases configured in the aliases/aliases.yml file using git config --global.
To see all installed aliases:
gaf hOr use the Git alias directly:
git hTired of typing long Git commands? git-alias-flow provides a curated set of productivity aliases that:
- Save time - Type
git stinstead ofgit status - Reduce typos - Short aliases are easier to remember and type
- Boost productivity - Focus on coding, not typing commands
- Standardize workflow - Consistent aliases across all your machines
st- git statusss- git status -s
pl- git pullps- git pushup- git fetch && git rebasepl-bc- git pull origin (current branch)ps-bc- git push origin (current branch)pnp- git pull origin (current branch) && git push origin (current branch)
c- git commit -vca- git commit -v -acm- git commit -m "message"
ck- git checkoutckb- git checkout -bckm- git checkout master
bc- git branchbca- git branch -abcm- git branch -m (rename branch)
lg- git log --stat --max-count=5lgg- git log --graph --max-count=5count- git shortlog -sn
a- git addad- git add .m- git merge
rh- git reset HEADrhh- git reset HEAD --hard
cp- git cherry-pick
dv- git diff -w
h- lists all installed aliases
# Status
git st # git status
git ss # git status -s
# Commits
git cm "fix: bug" # git commit -m "fix: bug"
git ca # git commit -v -a
# Branches
git ck main # git checkout main
git ckb feature # git checkout -b feature
git bc # git branch
git bcm old new # git branch -m old new
# Add files
git ad # git add .
git a file.js # git add file.js
# Pull/Push
git pl-bc # git pull origin (current branch)
git ps-bc # git push origin (current branch)
git pnp # pull + push (current branch)
# Help
gaf h # shows help with all aliasesAliases are defined in the aliases/aliases.yml file in the format:
alias: commandFor simple commands, use just the command:
st: statusFor compound commands or those that need shell, use ! followed by the complete command in quotes:
up: "!git fetch && git rebase"After editing the file, you can reinstall the aliases by running gaf again.
If you installed globally via npm, the file is located at:
# macOS/Linux
/usr/local/lib/node_modules/git-alias-flow/aliases/aliases.yml
# Or find it with:
npm list -g git-alias-flowTo remove a specific alias:
git config --global --unset alias.<alias-name>To list all installed aliases:
git config --global --get-regexp aliasTo uninstall the package:
npm uninstall -g git-alias-flowContributions are welcome! Feel free to:
- Report bugs
- Suggest new aliases
- Improve documentation
- Submit pull requests
MIT
Made with β€οΈ for developers who love productivity
