---
title: "Create your own git commands (aliases)"
description: "Ever wanted to shorten a git command? You can go with shell alilas for sure but you have to always include context so that you don't forget what each ailas stands for but you can define your own…"
canonical: https://oozou.com/til/create-your-own-git-commands-aliases-15
locale: en
date: 2020-10-13
topic: shell
---

# Create your own git commands (aliases)

> Ever wanted to shorten a git command? You can go with shell alilas for sure but you have to always include context so that you don't forget what each ailas stands for but you can define your own…

Published: 2020-10-13 · Topic: [shell](https://oozou.com/til-topics/shell) ([markdown](https://oozou.com/til-topics/shell.md))

Ever wanted to shorten a git command? You can go with shell alilas for sure but you have to always include context so that you don't forget what each ailas stands for but you can define your own commands in git using aliases.

```shell
git config --global alias.<handle> <command> 
```

For example; I'm too lazy to type *git status* so I want to shorten this to *git s*

```shell
git config --global alias.s status
```

And here we go now you can just type *git s* and get the status of current repository.

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
