Git Alias Builder
Build useful git aliases with a GUI. Browse popular aliases, customize commands, and export as git config.
About This Tool
The Git Alias Builder is a free browser-based tool that helps you
create and manage git aliases through an intuitive visual interface.
Git aliases are shortcuts that let you define shorter or more
memorable commands for frequently used git operations. Instead of
typing git log --oneline --graph --decorate --all every time, you
can create an alias like git lol that does the same thing.
This tool provides a curated library of popular git aliases organized into categories: Logging, Branching, Staging, Status, Workflow, and Cleanup. Each alias comes with a clear description of what it does and the full git command it maps to. Simply click an alias to add it to your personal collection, or build completely custom aliases using the dedicated input fields.
The builder supports two output formats. The .gitconfig format
produces an [alias] section that you can paste directly into your
~/.gitconfig file. The shell commands format generates
git config --global alias.xxx commands that you can execute in
your terminal to register the aliases one by one. Both formats are
ready to use without modification.
You can also import existing aliases from a .gitconfig file or
from shell commands. Paste your existing configuration and the parser
will extract the aliases, making it easy to review, reorganize, or
extend your current setup.
If you work with git daily, you might also find the
Git Command Builder useful for
constructing complex git commands visually. The
.gitignore Generator helps you create
.gitignore files for any project, and the
Diff Viewer lets you compare text side by side.
All processing happens entirely in your browser. Your alias configurations and commands never leave your machine — there are no server round-trips, no logging, and no third-party services involved.
How to Use
- Browse the Popular Aliases Library by clicking a category tab (Logging, Branching, Staging, Status, Workflow, or Cleanup).
- Click any alias card to add it to your My Aliases collection. Added aliases show a checkmark and become disabled.
- To create a custom alias, enter the alias name, the git command, and an optional description, then click Add.
- Review your selected aliases in the My Aliases section. Click the trash icon to remove any alias.
- Choose your output format:
.gitconfig(paste into config file) orShell Commands(run in terminal). - Click Copy or press Ctrl+Shift+C to copy the generated output to your clipboard. Click Download to save as a file.
- To import existing aliases, click Import, paste your
.gitconfigalias section orgit config --globalcommands, and click Import Aliases.
Popular Git Alias Examples
FAQ
What is a git alias?
A git alias is a custom shortcut for a git command. For example, you can set `git co` as an alias for `git checkout`. Aliases are defined in your `~/.gitconfig` file under the `[alias]` section, or set via `git config --global alias.co checkout`. They reduce typing and help you remember complex commands.
Where do I put the generated aliases?
If you chose the .gitconfig format, open your `~/.gitconfig` file (or `~/.config/git/config`) in a text editor and paste the `[alias]` section. If you already have an `[alias]` section, merge the entries. If you chose shell commands format, paste the commands into your terminal and run them. Each `git config --global` command registers one alias.
Can I use shell commands in git aliases?
Yes. Prefix the alias value with `!` to run arbitrary shell commands. For example, `wip = !git add -A && git commit -m 'WIP'` stages all files and commits them. Shell aliases can chain multiple commands, use pipes, and call external programs.
Will aliases override built-in git commands?
No. Git will not allow an alias to shadow a built-in command. If you try to create an alias named `commit`, git will ignore it and run the real `git commit` instead. Aliases only work for names that are not already git subcommands.
How do I list my existing git aliases?
Run `git config --global --get-regexp alias` in your terminal to see all globally configured aliases. You can also open `~/.gitconfig` and look for the `[alias]` section. This tool's Import feature can parse both formats.
Is my data safe?
Yes. All processing runs entirely in your browser using JavaScript. No data is sent to any server. You can verify this by checking the Network tab in your browser's developer tools while using the tool.
Can I share my alias collection with teammates?
Yes. Use the Download button to export your aliases as a `.gitconfig` snippet or a shell script. Share the file with your team so everyone can set up the same aliases. You can also copy the output directly and paste it into a shared wiki or README.
Related Tools
Git Command Builder
Build Git commands visually. Select operations, options, and flags to construct the correct git command with explanations.
.gitignore Generator
Generate .gitignore files by selecting languages, frameworks, and IDEs. Combine multiple templates instantly.
Diff Viewer
Compare two texts side by side with line-by-line and character-level diff highlighting.
Git Branch Name Generator
Convert ticket numbers and titles into clean git branch names with configurable naming conventions.
Git Conflict Resolver
Resolve git merge conflicts visually. Paste conflict markers, compare sides, and choose or edit the resolution.
Changelog Generator
Generate CHANGELOG.md from Conventional Commits. Group by type, add version headers, and export in Keep a Changelog format.