# Make Git command alias

I like using git commands but I don't like typing the same sequence of commands over and over. I found that instead of typing

```shell
git add .
git commit
```

I can make an alias using

```shell
git config --global alias.ac '!git add . && git commit'
```

Now, instead of typing both commands, I can simply run:

```bash
git ac -m "fix: update controller"
```

This is equivalent to:

```bash
git add .
git commit -m "fix: update controller"
```

If I run `git ac` without `-m`, Git will open the configured editor so I can write the commit message.

A small alias that can accelerate a repetitive sequence. Always be learning, dev-san 🚀
