|
|
|
|
@ -11,7 +11,7 @@ plugins=(... git) |
|
|
|
|
## Aliases |
|
|
|
|
|
|
|
|
|
| Alias | Command | |
|
|
|
|
|:---------------------|:------------------------------------------------------------------------------------------------------------------------------| |
|
|
|
|
|:---------------------|:---------------------------------------------------------------------------------------------------------------------------------| |
|
|
|
|
| g | git | |
|
|
|
|
| ga | git add | |
|
|
|
|
| gaa | git add --all | |
|
|
|
|
@ -177,25 +177,26 @@ plugins=(... git) |
|
|
|
|
These are aliases that have been removed, renamed, or otherwise modified in a way that may, or may not, receive further support. |
|
|
|
|
|
|
|
|
|
| Alias | Command | Modification | |
|
|
|
|
| :----- | :----------------------------------------------------------------------------------| --------------------------------------------------------------------------------------------------- | |
|
|
|
|
| gap | git add --patch | new alias `gapa` | |
|
|
|
|
| gcl | git config --list | new alias `gcf` | |
|
|
|
|
| gdc | git diff --cached | new alias `gdca` | |
|
|
|
|
| gdt | git difftool | no replacement | |
|
|
|
|
| ggpull | git pull origin $(current_branch) | new alias `ggl` (`ggpull` still exists for now though) | |
|
|
|
|
| ggpur | git pull --rebase origin $(current_branch) | new alias `ggu` (`ggpur` still exists for now though) | |
|
|
|
|
| ggpush | git push origin $(current_branch) | new alias `ggp` (`ggpush` still exists for now though) | |
|
|
|
|
| gk | gitk --all --branches | now aliased to `gitk --all --branches` | |
|
|
|
|
| glg | git log --stat --max-count = 10 | now aliased to `git log --stat --color` | |
|
|
|
|
| glgg | git log --graph --max-count = 10 | now aliased to `git log --graph --color` | |
|
|
|
|
| gwc | git whatchanged -p --abbrev-commit --pretty = medium | new alias `gwch` | |
|
|
|
|
| :----- | :----------------------------------------------------- | :----------------------------------------------------- | |
|
|
|
|
| gap | `git add --patch` | new alias `gapa` | |
|
|
|
|
| gcl | `git config --list` | new alias `gcf` | |
|
|
|
|
| gdc | `git diff --cached` | new alias `gdca` | |
|
|
|
|
| gdt | `git difftool` | no replacement | |
|
|
|
|
| ggpull | `git pull origin $(current_branch)` | new alias `ggl` (`ggpull` still exists for now though) | |
|
|
|
|
| ggpur | `git pull --rebase origin $(current_branch)` | new alias `ggu` (`ggpur` still exists for now though) | |
|
|
|
|
| ggpush | `git push origin $(current_branch)` | new alias `ggp` (`ggpush` still exists for now though) | |
|
|
|
|
| gk | `gitk --all --branches` | now aliased to `gitk --all --branches` | |
|
|
|
|
| glg | `git log --stat --max-count = 10` | now aliased to `git log --stat --color` | |
|
|
|
|
| glgg | `git log --graph --max-count = 10` | now aliased to `git log --graph --color` | |
|
|
|
|
| gwc | `git whatchanged -p --abbrev-commit --pretty = medium` | new alias `gwch` | |
|
|
|
|
|
|
|
|
|
## Functions |
|
|
|
|
|
|
|
|
|
### Current |
|
|
|
|
|
|
|
|
|
| Command | Description | |
|
|
|
|
|:-----------------------|:----------------------------------------| |
|
|
|
|
|:-----------------------|:---------------------------------------------------------| |
|
|
|
|
| `grename <old> <new>` | Rename `old` branch to `new`, including in origin remote | |
|
|
|
|
| current_branch | Return the name of the current branch | |
|
|
|
|
| git_current_user_name | Returns the `user.name` config value | |
|
|
|
|
| git_current_user_email | Returns the `user.email` config value | |
|
|
|
|
|