HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git alias — Create shortcuts for Git commands. Part of `git-extras`. More information: <https://github.com/tj/gi

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandcommandscligit aliasshortcutsforgit

Problem

How to use the git alias command: Create shortcuts for Git commands. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-alias>.

Solution

git alias — Create shortcuts for Git commands. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-alias>.

List all aliases:
git alias


Create a new alias:
git alias "{{name}}" "{{command}}"


Search for an existing alias:
git alias ^{{name}}

Code Snippets

List all aliases

git alias

Create a new alias

git alias "{{name}}" "{{command}}"

Search for an existing alias

git alias ^{{name}}

Context

tldr-pages: common/git alias

Revisions (0)

No revisions yet.