> For the complete documentation index, see [llms.txt](https://styryshkin.gitbook.io/mac-setup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://styryshkin.gitbook.io/mac-setup/git/git-aliases.md).

# Git Aliases

### Aliases

| Alias  | Command                                                                                                                                 |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| g      | git                                                                                                                                     |
| ga     | git add                                                                                                                                 |
| gaa    | git add --all                                                                                                                           |
| gb     | git branch                                                                                                                              |
| gba    | git branch -a                                                                                                                           |
| gbnm   | git branch --no-merged                                                                                                                  |
| gc     | git commit -v                                                                                                                           |
| gc!    | git commit -v --amend                                                                                                                   |
| gca    | git commit -v -a                                                                                                                        |
| gcam   | git commit -a -m                                                                                                                        |
| gca!   | git commit -v -a --amend                                                                                                                |
| gcan!  | git commit -v -a -s --no-edit --amend                                                                                                   |
| gcb    | git checkout -b                                                                                                                         |
| gcf    | git config --list                                                                                                                       |
| gcl    | git clone --recursive                                                                                                                   |
| gclean | git clean -df                                                                                                                           |
| gcm    | git checkout master                                                                                                                     |
| gcmsg  | git commit -m                                                                                                                           |
| gco    | git checkout                                                                                                                            |
| gcount | git shortlog -sn                                                                                                                        |
| gcp    | git cherry-pick                                                                                                                         |
| gcpa   | git cherry-pick --abort                                                                                                                 |
| gcpc   | git cherry-pick --continue                                                                                                              |
| gcs    | git commit -S                                                                                                                           |
| gd     | git diff                                                                                                                                |
| gdca   | git diff --cached                                                                                                                       |
| gf     | git fetch                                                                                                                               |
| gfo    | git fetch origin                                                                                                                        |
| ggf    | git push --force origin $(current\_branch)                                                                                              |
| ghh    | git help                                                                                                                                |
| gl     | git pull                                                                                                                                |
| glg    | git log --stat --color                                                                                                                  |
| glgg   | git log --graph --color                                                                                                                 |
| glgga  | git log --graph --decorate --all                                                                                                        |
| glgm   | git log --graph --max-count = 10                                                                                                        |
| glgp   | git log --stat --color -p                                                                                                               |
| glo    | git log --oneline --decorate --color                                                                                                    |
| glog   | git log --oneline --decorate --color --graph                                                                                            |
| glol   | git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit       |
| glola  | git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all |
| gm     | git merge                                                                                                                               |
| gmom   | git merge origin/master                                                                                                                 |
| gp     | git push                                                                                                                                |
| gpv    | git push -v                                                                                                                             |
| gr     | git remote                                                                                                                              |
| gra    | git remote add                                                                                                                          |
| grb    | git rebase                                                                                                                              |
| grba   | git rebase --abort                                                                                                                      |
| grbc   | git rebase --continue                                                                                                                   |
| grbi   | git rebase -i                                                                                                                           |
| grbm   | git rebase master                                                                                                                       |
| grbs   | git rebase --skip                                                                                                                       |
| grh    | git reset HEAD                                                                                                                          |
| grhh   | git reset HEAD --hard                                                                                                                   |
| grmv   | git remote rename                                                                                                                       |
| grrm   | git remote remove                                                                                                                       |
| grset  | git remote set-url                                                                                                                      |
| grv    | git remote -v                                                                                                                           |
| gsb    | git status -sb                                                                                                                          |
| gsps   | git show --pretty = short --show-signature                                                                                              |
| gss    | git status -s                                                                                                                           |
| gst    | git status                                                                                                                              |
| gsta   | git stash save                                                                                                                          |
| gstaa  | git stash apply                                                                                                                         |
| gstd   | git stash drop                                                                                                                          |
| gstl   | git stash list                                                                                                                          |
| gstp   | git stash pop                                                                                                                           |
| gstc   | git stash clear                                                                                                                         |
| gsts   | git stash show --text                                                                                                                   |
| gts    | git tag -s                                                                                                                              |
| gup    | git pull --rebase                                                                                                                       |
| gupv   | git pull --rebase -v                                                                                                                    |
| gvt    | git verify-tag                                                                                                                          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://styryshkin.gitbook.io/mac-setup/git/git-aliases.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
