Skip to content
Justice Tech School

Aliases

Aliases shorten long commands. Set them in git config.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
git config alias.st 'status -s'
git config alias.lg 'log --oneline'
git st
git lg | wc -l

Result

1

Exercise

Define an alias.

git config alias.co 

Quiz Test

Where are aliases stored?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.