DEV Community

Njeri Cooper
Njeri Cooper

Posted on

4 1

Git Alias: WTF Is It? How to do it? When TF to Use it?

WTF is a Git Alias?

  • a shorthand command for shortcutting Git functions.

How to Do it?

How to make Git aliases and how to use them

  • Configure your global Git settings by typing > git config --global alias.(your desired shorthand command) (actual command)

Example: git config --global alias.ci commit

or add a bit of code to your .gitconfig file

[alias]
ci = commit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay