DevOps Generators

Alias Generator

All tools

A starter set of Git aliases you can paste into a terminal in one go.

How it works

Four simple steps

1

Review the set

Seven aliases cover status, branches, commits and logs.

2

Trim what you skip

Delete any lines you do not want before running them.

3

Run in a terminal

Each line writes one alias to your global config.

4

Use the shortcuts

Type git st, git lg or git last from then on.

Alias Generator

About Alias Generator

Typing git status, git checkout and long log flags dozens of times a day adds up. A few aliases cut the keystrokes, yet most people never get around to setting them up on a new machine.

The output is a fixed set of seven git config --global alias commands: st for status, co for checkout, br for branch, cm for commit -m, lg for a one-line decorated graph of the last 20 commits, unstage for reset HEAD --, and last for the most recent commit. There are no options to choose; copy the block or download it as a .sh file, delete the lines you do not want, and run the rest.

Before pasting, run git config --get-regexp alias to see what you already have, since running these commands overwrites any existing alias with the same name. Since Git 2.23, git switch and git restore cover most of what checkout does, so you may want sw for switch alongside co. Adding your own follows the same pattern: git config --global alias.NAME "command and flags".

The commands are plain text produced in your browser. The Git config generator handles name, email and line endings, and the Git log formatter shortens hashes in pasted logs.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

In the alias section of your global .gitconfig file, usually in your home directory. You can edit or remove them there directly.

No. Git ignores aliases that share a name with an existing command, so an alias called status would never run. All seven names here are short forms that do not clash.

Run git config --global --unset alias.co, replacing co with the alias you want to drop.

View more FAQs

Related tools

View all

Kubernetes Manifest Studio

Generate Deployment, Service, and Ingress YAML with a drift checklist.

Open

K8s Inspector

Summarize Kubernetes YAML kinds, names, and labels.

Open

K8s Resource Diff

Diff two Kubernetes manifests locally.

Open

K8s Manifest Splitter

Split multi-document YAML into one file per resource.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools