Alias Generator

Alias Generator

Git alias generator online. Create common Git aliases like co, br, st. Custom alias builder—copy git alias commands free.

10 lines

⚡ Shortcuts 8

📜 Logging 7

🔄 Workflow 11

🌿 Branching 5

ℹ️ Info 6

🔧 Advanced 10

Add Custom Alias

📋 Commands (10 aliases)

git config --global alias.co 'checkout'
git config --global alias.br 'branch'
git config --global alias.ci 'commit'
git config --global alias.st 'status'
git config --global alias.lg 'log --oneline --graph --decorate'
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.undo 'reset HEAD~1 --mixed'
git config --global alias.amend 'commit --amend --no-edit'
git config --global alias.unstage 'reset HEAD --'
git config --global alias.aliases 'config --get-regexp '^alias\.''

Usage Examples

git co main # checkout main
git lg # pretty log graph
git aa && git ci -m "msg" # add all & commit
git undo # undo last commit

Features

  • Create custom short commands for Git
  • Presets for popular aliases (co, br, st, lg)
  • Shell command execution support (!)
  • Instant copy to config format

Common Use Cases

  • Typing less (efficiency)
  • Creating complex compound commands
  • fixing common typos (git statsu -> status)

Git Aliases

Aliases allow you to define shortcuts for Git commands. They are stored in your `.gitconfig`. For example, mapping `co` to `checkout`.

Examples

Valid - Shortcuts
st = status
co = checkout
br = branch
Valid - Complex
lg = log --graph --oneline --decorate --all

Frequently Asked Questions

How to use?
After setting `st = status`, you can just type `git st`.
Can I verify?
Run `git config --global alias.st` to see if it is set.

💡 Tips

  • Don't over-alias to the point you forget the real commands!