Git Alias Generator
Select the git commands you use most and get both the git config alias.X commands and a paste-ready [alias] block.
Use the Git Alias Generator
Choose git commands
Add a custom command
Selected aliases
No aliases selected yet. Check some commands on the left.
git config commands
.gitconfig [alias] block
Summary
This tool builds git aliases from a checklist of common commands (status, checkout, commit, branch, log, and more) or from a custom command you type in. It outputs both the individual git config --global alias.X "Y" lines and a single [alias] block ready to paste into your .gitconfig file.
How it works
- Check the boxes next to the git commands you want a shortcut for.
- Adjust the generated short name for any alias if you want something different.
- Add your own custom command with a name of your choice.
- Copy the git config commands or the .gitconfig block with one click.
- Paste the result into your terminal or .gitconfig file.
Use cases
- Set up a fresh machine with your usual git shortcuts in seconds.
- Standardize aliases across a team by sharing the generated .gitconfig block.
- Turn a long command you keep retyping into a short alias.
- Build aliases for common combos like log graphs or amended commits.
- Onboard new developers with a ready-made set of git shortcuts.
Frequently Asked Questions
Last updated: 2026-09-09 · Reviewed by Nham Vu