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.

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

Select the git commands you use most and get both the git config alias.X commands and a paste-ready [alias] block.

How it works

  1. Check the boxes next to the git commands you want a shortcut for.
  2. Adjust the generated short name for any alias if you want something different.
  3. Add your own custom command with a name of your choice.
  4. Copy the git config commands or the .gitconfig block with one click.
  5. 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-07-23 · Reviewed by Nham Vu