@ -1,13 +1,11 @@
Git
# Git
===
Enhances the [Git][1] distributed version control system by providing aliases,
Enhances the [Git][1] distributed version control system by providing aliases,
functions and by exposing repository status information to prompts.
functions and by exposing repository status information to prompts.
Git **1.7.2** is the [minimum required version][7].
Git **1.7.2** is the [minimum required version][7].
Settings
## Settings
--------
### Log
### Log
@ -30,8 +28,7 @@ zstyle ':prezto:module:git:status:ignore' submodules 'all'
This setting affects all aliases and functions that call `git-status` .
This setting affects all aliases and functions that call `git-status` .
Aliases
## Aliases
-------
Aliases are enabled by default. You can disable them with:
Aliases are enabled by default. You can disable them with:
@ -41,288 +38,290 @@ zstyle ':prezto:module:git:alias' skip 'yes'
### Git
### Git
- `g` is short for `git` .
- `g` is short for `git` .
### Branch
### Branch (b)
- `gb` lists, creates, renames, and deletes branches.
- `gb` lists, creates, renames, and deletes branches.
- `gbc` creates a new branch.
- `gbc` creates a new branch.
- `gbl` lists branches and their commits. (also `gbv` )
- `gbl` lists branches and their commits. (also `gbv` )
- `gbL` lists all local and remote branches and their commits.
- `gbL` lists all local and remote branches and their commits.
- `gbr` renames a branch. (also `gbm` )
- `gbr` renames a branch. (also `gbm` )
- `gbR` renames a branch even if the new branch name already exists. (also
- `gbR` renames a branch even if the new branch name already exists. (also
`gbM` )
`gbM` )
- `gbs` lists branches and their commits with ancestry graphs.
- `gbs` lists branches and their commits with ancestry graphs.
- `gbS` lists local and remote branches and their commits with ancestry
- `gbS` lists local and remote branches and their commits with ancestry graphs.
graph s.
- `gbV` lists branches with more verbose information about their commit s.
- `gbV` lists branches with more verbose information about their commits.
- `gbx` deletes a branch. (also `gbd` )
- `gbx` deletes a branch. (also `gbd `)
- `gbX` deletes a branch irrespective of its merged status. (also `gbD `)
- `gbX` deletes a branch irrespective of its merged status. (also `gbD` )
### Commit (c)
### Commit
- `gc` records changes to the repository.
- `gca` stages all modified and deleted files.
- `gc ` records changes to the repository.
- `gc m ` records changes to the repository with the given message .
- `gca` stages all modified and deleted files.
- `gcS` records changes to the repository. (Signed)
- `gcm` records changes to the repository with the given message.
- `gcSa` stages all modified and deleted files. (Signed)
- `gcS ` records changes to the repository. (Signed)
- `gcS m ` records changes to the repository with the given message . (Signed)
- `gcSa` stages all modified and deleted files. (Signed)
- `gcam` stages all modified and deleted files, and records changes to the
- `gcSm` records changes to the repository with the given message. (Signed)
repository with the given message.
- `gcam` stages all modified and deleted files, and records changes to the repository with the given messag e.
- `gco` checks out a branch or paths to work tre e.
- `gco` checks out a branch or paths to work tree .
- `gcO` checks out hunks from the index or the tree interactively .
- `gcO` checks out hunks from the index or the tree interactively.
- `gcf` amends the tip of the current branch using the same log message as
- `gcf` amends the tip of the current branch using the same log message as *HEAD* .
*HEAD* .
- `gcSf` amends the tip of the current branch using the same log message as *HEAD* . (Signed)
- `gcSf` amends the tip of the current branch using the same log message as
- `gcF` amends the tip of the current branch.
*HEAD* . (Signed)
- `gc S F` amends the tip of the current branch. (Signed)
- `gc F` amends the tip of the current branch.
- `gcp` applies changes introduced by existing commits.
- `gcSF` amends the tip of the current branch. (Signed)
- `gcP ` applies changes introduced by existing commits without committing .
- `gcp ` applies changes introduced by existing commits.
- `gcr` reverts existing commits by reverting patches and recording new
- `gcP` applies changes introduced by existing commits without committing.
commits.
- `gcr` reverts existing commits by reverting patches and recording new commits.
- `gcR` removes the *HEAD* commit.
- `gcR` removes the *HEAD* commit.
- `gcs` displays various types of objects.
- `gcs` displays various types of objects.
- `gcsS` displays commits with GPG signature.
- `gcsS` displays commits with GPG signature.
- `gcl` lists lost commits.
- `gcl` lists lost commits.
- `gcy` displays commits yet to be applied to upstream in the short format.
- `gcy` displays commits yet to be applied to upstream in the short format.
- `gcY` displays commits yet to be applied to upstream.
- `gcY` displays commits yet to be applied to upstream.
### Conflict
### Conflict (C)
- `gCl` lists unmerged files.
- `gCl` lists unmerged files.
- `gCa` adds unmerged file contents to the index.
- `gCa` adds unmerged file contents to the index.
- `gCe` executes merge-tool on all unmerged file.
- `gCe` executes merge-tool on all unmerged file.
- `gCo` checks out our changes for unmerged paths.
- `gCo` checks out our changes for unmerged paths.
- `gCO` checks out our changes for all unmerged paths.
- `gCO` checks out our changes for all unmerged paths.
- `gCt` checks out their changes for unmerged paths.
- `gCt` checks out their changes for unmerged paths.
- `gCT` checks out their changes for all unmerged paths.
- `gCT` checks out their changes for all unmerged paths.
### Data
### Data (d)
- `gd` displays information about files in the index and the work tree.
- `gd` displays information about files in the index and the work tree.
- `gdc` lists cached files.
- `gdc` lists cached files.
- `gdx` lists deleted files.
- `gdx` lists deleted files.
- `gdm` lists modified files.
- `gdm` lists modified files.
- `gdu` lists untracked files.
- `gdu` lists untracked files.
- `gdk` lists killed files.
- `gdk` lists killed files.
- `gdi` lists ignored files.
- `gdi` lists ignored files.
### Fetch
### Fetch (f)
- `gf` downloads objects and references from another repository.
- `gf` downloads objects and references from another repository.
- `gfa` downloads objects and references from all remote repositories.
- `gfa` downloads objects and references from all remote repositories.
- `gfc` clones a repository into a new directory.
- `gfc` clones a repository into a new directory.
- `gfcr` clones a repository into a new directory including all submodules.
- `gfcr` clones a repository into a new directory including all submodules.
- `gfm` fetches from and merges with another repository or local branch.
- `gfm` fetches from and merges with another repository or local branch.
- `gfr` fetches from and rebases on another repository or local branch.
- `gfr` fetches from and rebases on another repository or local branch.
### Flow
### Flow (F)
- `gFi` is short for `git flow init`
- `gFi` is short for `git flow init`
#### Feature
#### Feature (Ff)
- `gFf` is short for `git flow feature`
- `gFf` is short for `git flow feature`
- `gFfl` is short for `git flow feature list`
- `gFfl` is short for `git flow feature list`
- `gFfs` is short for `git flow feature start`
- `gFfs` is short for `git flow feature start`
- `gFff` is short for `git flow feature finish`
- `gFff` is short for `git flow feature finish`
- `gFfp` is short for `git flow feature publish`
- `gFfp` is short for `git flow feature publish`
- `gFft` is short for `git flow feature track`
- `gFft` is short for `git flow feature track`
- `gFfd` is short for `git flow feature diff`
- `gFfd` is short for `git flow feature diff`
- `gFfr` is short for `git flow feature rebase`
- `gFfr` is short for `git flow feature rebase`
- `gFfc` is short for `git flow feature checkout`
- `gFfc` is short for `git flow feature checkout`
- `gFfm` is short for `git flow feature pull`
- `gFfm` is short for `git flow feature pull`
- `gFfx` is short for `git flow feature delete`
- `gFfx` is short for `git flow feature delete`
#### Bugfix
#### Bugfix (Fb)
- `gFb` is short for `git flow bugfix`
- `gFb` is short for `git flow bugfix`
- `gFbl` is short for `git flow bugfix list`
- `gFbl` is short for `git flow bugfix list`
- `gFbs` is short for `git flow bugfix start`
- `gFbs` is short for `git flow bugfix start`
- `gFbf` is short for `git flow bugfix finish`
- `gFbf` is short for `git flow bugfix finish`
- `gFbp` is short for `git flow bugfix publish`
- `gFbp` is short for `git flow bugfix publish`
- `gFbt` is short for `git flow bugfix track`
- `gFbt` is short for `git flow bugfix track`
- `gFbd` is short for `git flow bugfix diff`
- `gFbd` is short for `git flow bugfix diff`
- `gFbr` is short for `git flow bugfix rebase`
- `gFbr` is short for `git flow bugfix rebase`
- `gFbc` is short for `git flow bugfix checkout`
- `gFbc` is short for `git flow bugfix checkout`
- `gFbm` is short for `git flow bugfix pull`
- `gFbm` is short for `git flow bugfix pull`
- `gFbx` is short for `git flow bugfix delete`
- `gFbx` is short for `git flow bugfix delete`
#### Release
#### Release (Fl)
- `gFl` is short for `git flow release`
- `gFl` is short for `git flow release`
- `gFll` is short for `git flow release list`
- `gFll` is short for `git flow release list`
- `gFls` is short for `git flow release start`
- `gFls` is short for `git flow release start`
- `gFlf` is short for `git flow release finish`
- `gFlf` is short for `git flow release finish`
- `gFlp` is short for `git flow release publish`
- `gFlp` is short for `git flow release publish`
- `gFlt` is short for `git flow release track`
- `gFlt` is short for `git flow release track`
- `gFld` is short for `git flow release diff`
- `gFld` is short for `git flow release diff`
- `gFlr` is short for `git flow release rebase`
- `gFlr` is short for `git flow release rebase`
- `gFlc` is short for `git flow release checkout`
- `gFlc` is short for `git flow release checkout`
- `gFlm` is short for `git flow release pull`
- `gFlm` is short for `git flow release pull`
- `gFlx` is short for `git flow release delete`
- `gFlx` is short for `git flow release delete`
#### Hotfix
#### Hotfix (Fh)
- `gFh` is short for `git flow hotfix`
- `gFh` is short for `git flow hotfix`
- `gFhl` is short for `git flow hotfix list`
- `gFhl` is short for `git flow hotfix list`
- `gFhs` is short for `git flow hotfix start`
- `gFhs` is short for `git flow hotfix start`
- `gFhf` is short for `git flow hotfix finish`
- `gFhf` is short for `git flow hotfix finish`
- `gFhp` is short for `git flow hotfix publish`
- `gFhp` is short for `git flow hotfix publish`
- `gFht` is short for `git flow hotfix track`
- `gFht` is short for `git flow hotfix track`
- `gFhd` is short for `git flow hotfix diff`
- `gFhd` is short for `git flow hotfix diff`
- `gFhr` is short for `git flow hotfix rebase`
- `gFhr` is short for `git flow hotfix rebase`
- `gFhc` is short for `git flow hotfix checkout`
- `gFhc` is short for `git flow hotfix checkout`
- `gFhm` is short for `git flow hotfix pull`
- `gFhm` is short for `git flow hotfix pull`
- `gFhx` is short for `git flow hotfix delete`
- `gFhx` is short for `git flow hotfix delete`
#### Support
#### Support (Fs)
- `gFs` is short for `git flow support`
- `gFs` is short for `git flow support`
- `gFsl` is short for `git flow support list`
- `gFsl` is short for `git flow support list`
- `gFss` is short for `git flow support start`
- `gFss` is short for `git flow support start`
- `gFsf` is short for `git flow support finish`
- `gFsf` is short for `git flow support finish`
- `gFsp` is short for `git flow support publish`
- `gFsp` is short for `git flow support publish`
- `gFst` is short for `git flow support track`
- `gFst` is short for `git flow support track`
- `gFsd` is short for `git flow support diff`
- `gFsd` is short for `git flow support diff`
- `gFsr` is short for `git flow support rebase`
- `gFsr` is short for `git flow support rebase`
- `gFsc` is short for `git flow support checkout`
- `gFsc` is short for `git flow support checkout`
- `gFsm` is short for `git flow support pull`
- `gFsm` is short for `git flow support pull`
- `gFsx` is short for `git flow support delete`
- `gFsx` is short for `git flow support delete`
### Grep
### Grep (g)
- `gg` displays lines matching a pattern.
- `gg` displays lines matching a pattern.
- `ggi` displays lines matching a pattern ignoring case.
- `ggi` displays lines matching a pattern ignoring case.
- `ggl` lists files matching a pattern.
- `ggl` lists files matching a pattern.
- `ggL` lists files that are not matching a pattern.
- `ggL` lists files that are not matching a pattern.
- `ggv` displays lines not matching a pattern.
- `ggv` displays lines not matching a pattern.
- `ggw` displays lines matching a pattern at word boundary.
- `ggw` displays lines matching a pattern at word boundary.
### Index
### Index (i)
- `gia` adds file contents to the index.
- `gia` adds file contents to the index.
- `giA` adds file contents to the index interactively.
- `giA` adds file contents to the index interactively.
- `giu` adds file contents to the index (updates only known files).
- `giu` adds file contents to the index (updates only known files).
- `gid` displays changes between the index and a named commit (diff).
- `gid` displays changes between the index and a named commit (diff).
- `giD` displays changes between the index and a named commit (word diff).
- `giD` displays changes between the index and a named commit (word diff).
- `gii` temporarily ignore differences in a given file.
- `gii` temporarily ignore differences in a given file.
- `giI` unignore differences in a given file.
- `giI` unignore differences in a given file.
- `gir` resets the current HEAD to the specified state.
- `gir` resets the current HEAD to the specified state.
- `giR` resets the current index interactively.
- `giR` resets the current index interactively.
- `gix` removes files/directories from the index (recursively).
- `gix` removes files/directories from the index (recursively).
- `giX` removes files/directories from the index (recursively and forced).
- `giX` removes files/directories from the index (recursively and forced).
### Log
### Log (l)
- `gl` displays the log.
- `gl` displays the log.
- `gls` displays the stats log.
- `gls` displays the stats log.
- `gld` displays the diff log.
- `gld` displays the diff log.
- `glo` displays the one line log.
- `glo` displays the one line log.
- `glg` displays the graph log.
- `glg` displays the graph log.
- `glb` displays the brief commit log.
- `glb` displays the brief commit log.
- `glc` displays the commit count for each contributor in descending order.
- `glc` displays the commit count for each contributor in descending order.
- `glS` displays the log and checks the validity of signed commits.
- `glS` displays the log and checks the validity of signed commits.
### Merge
### Merge (m)
- `gm` joins two or more development histories together.
- `gm` joins two or more development histories together.
- `gmC` joins two or more development histories together but does not commit.
- `gmC` joins two or more development histories together but does not commit.
- `gmF` joins two or more development histories together but does not commit
- `gmF` joins two or more development histories together but does not commit
generating a merge commit even if the merge resolved as a fast-forward.
generating a merge commit even if the merge resolved as a fast-forward.
- `gma` aborts the conflict resolution, and reconstructs the pre-merge state.
- `gma` aborts the conflict resolution, and reconstructs the pre-merge state.
- `gmt` runs the merge conflict resolution tools to resolve conflicts.
- `gmt` runs the merge conflict resolution tools to resolve conflicts.
### Push
### Push (p)
- `gp` updates remote refs along with associated objects.
- `gp` updates remote refs along with associated objects.
- `gpf` forcefully updates remote refs along with associated objects using the safer `--force-with-lease` option.
- `gpf` forcefully updates remote refs along with associated objects using the
- `gpF` forcefully updates remote refs along with associated objects using the riskier `--force` option.
safer `--force-with-lease` option.
- `gpa` updates remote branches along with associated objects.
- `gpF` forcefully updates remote refs along with associated objects using the
- `gpA` updates remote branches and tags along with associated objects.
riskier `--force` option.
- `gpt` updates remote tags along with associated objects.
- `gpa` updates remote branches along with associated objects.
- `gpc` updates remote refs along with associated objects and adds *origin*
- `gpA` updates remote branches and tags along with associated objects.
as an upstream reference for the current branch.
- `gpt` updates remote tags along with associated objects.
- `gpp` pulls and pushes from origin to origin.
- `gpc` updates remote refs along with associated objects and adds *origin* as
an upstream reference for the current branch.
### Rebase
- `gpp` pulls and pushes from origin to origin.
- `gr` forward-ports local commits to the updated upstream head.
### Rebase (r)
- `gra` aborts the rebase.
- `grc` continues the rebase after merge conflicts are resolved.
- `gr` forward-ports local commits to the updated upstream head.
- `gri` makes a list of commits to be rebased and opens the editor.
- `gra` aborts the rebase.
- `grs` skips the current patch.
- `grc` continues the rebase after merge conflicts are resolved.
- `gri` makes a list of commits to be rebased and opens the editor.
### Remote
- `grs` skips the current patch.
- `gR` manages tracked repositories.
### Remote (R)
- `gRl` lists remote names and their URLs.
- `gRa` adds a new remote.
- `gR` manages tracked repositories.
- `gRx` removes a remote.
- `gRl` lists remote names and their URLs.
- `gRm` renames a remote.
- `gRa` adds a new remote.
- `gRu` fetches remotes updates.
- `gRx` removes a remote.
- `gRp` prunes all stale remote tracking branches.
- `gRm` renames a remote.
- `gRs` displays information about a given remote.
- `gRu` fetches remotes updates.
- `gRb` opens a remote on [GitHub][3] in the default browser.
- `gRp` prunes all stale remote tracking branches.
- `gRs` displays information about a given remote.
### Stash
- `gRb` opens a remote on [GitHub][3] in the default browser.
- `gs` stashes the changes of the dirty working directory.
### Stash (s)
- `gsa` applies the changes recorded in a stash to the working directory.
- `gsx` drops a stashed state.
- `gs` stashes the changes of the dirty working directory.
- `gsX` drops all the stashed states.
- `gsa` applies the changes recorded in a stash to the working directory.
- `gsl` lists stashed states.
- `gsx` drops a stashed state.
- `gsL` lists dropped stashed states.
- `gsX` drops all the stashed states.
- `gsd` displays changes between the stash and its original parent.
- `gsl` lists stashed states.
- `gsp` removes and applies a single stashed state from the stash list.
- `gsL` lists dropped stashed states.
- `gsr` recovers a given stashed state.
- `gsd` displays changes between the stash and its original parent.
- `gss` stashes the changes of the dirty working directory, including untracked.
- `gsp` removes and applies a single stashed state from the stash list.
- `gsS` stashes the changes of the dirty working directory interactively.
- `gsr` recovers a given stashed state.
- `gsw` stashes the changes of the dirty working directory retaining the index.
- `gss` stashes the changes of the dirty working directory, including untracked.
- `gsS` stashes the changes of the dirty working directory interactively.
### Submodule
- `gsw` stashes the changes of the dirty working directory retaining the index.
- `gS` initializes, updates, or inspects submodules.
### Submodule (S)
- `gSa` adds given a repository as a submodule.
- `gSf` evaluates a shell command in each of checked out submodules.
- `gS` initializes, updates, or inspects submodules.
- `gSi` initializes submodules.
- `gSa` adds given a repository as a submodule.
- `gSI` initializes and clones submodules recursively.
- `gSf` evaluates a shell command in each of checked out submodules.
- `gSl` lists the commits of all submodules.
- `gSi` initializes submodules.
- `gSm` moves a submodule.
- `gSI` initializes and clones submodules recursively.
- `gSs` synchronizes submodules' remote URL to the value specified in
- `gSl` lists the commits of all submodules.
.gitmodules.
- `gSm` moves a submodule.
- `gSu` fetches and merges the latest changes for all submodule.
- `gSs` synchronizes submodules' remote URL to the value specified in
- `gSx` removes a submodule.
*.gitmodules* .
- `gSu` fetches and merges the latest changes for all submodule.
### Tag
- `gSx` removes a submodule.
- `gt` lists tags or creates tag.
### Tag (t)
- `gtl` lists tags matching pattern.
- `gts` creates a signed tag.
- `gt` lists tags or creates tag.
- `gtv` validate a signed tag.
- `gtl` lists tags matching pattern.
- `gts` creates a signed tag.
### Working directory
- `gtv` validate a signed tag.
- `gws` displays working-tree status in the short format.
### Working directory (w)
- `gwS` displays working-tree status.
- `gwd` displays changes between the working tree and the index (diff).
- `gws` displays working-tree status in the short format.
- `gwD` displays changes between the working tree and the index (word diff).
- `gwS` displays working-tree status.
- `gwr` resets the current HEAD to the specified state, does not touch the
- `gwd` displays changes between the working tree and the index (diff).
- `gwD` displays changes between the working tree and the index (word diff).
- `gwr` resets the current HEAD to the specified state, does not touch the
index nor the working tree.
index nor the working tree.
- `gwR` resets the current HEAD, index and working tree to the specified state.
- `gwR` resets the current HEAD, index and working tree to the specified state.
- `gwc` removes untracked files from the working tree (dry-run).
- `gwc` removes untracked files from the working tree (dry-run).
- `gwC` removes untracked files from the working tree.
- `gwC` removes untracked files from the working tree.
- `gwx` removes files from the working tree and from the index recursively.
- `gwx` removes files from the working tree and from the index recursively.
- `gwX` removes files from the working tree and from the index recursively and
- `gwX` removes files from the working tree and from the index recursively and
forcefully.
forcefully.
### Shadows
### Shadows
The following aliases may shadow system commands:
The following aliases may shadow system commands:
- `gb` shadows the [GB][9].
- `gb` shadows the [GB][9].
- `gm` shadows the [Graphics Magick image processor][11].
- `gm` shadows the [GraphicsMagick image processor][11].
- `gpt` shadows the [GUID partition table maintenance utility][4].
- `gpt` shadows the [GUID partition table maintenance utility][4].
- `gs` shadows the [Ghostscript interpreter and previewer][5].
- `gs` shadows the [Ghostscript interpreter and previewer][5].
If you frequently use the above commands, you may wish to remove said aliases
If you frequently use the above commands, you may wish to remove said aliases
from this module or to disable them at the bottom of the zshrc with `unalias` .
from this module or to disable them at the bottom of the zshrc with `unalias` .
@ -330,25 +329,23 @@ from this module or to disable them at the bottom of the zshrc with `unalias`.
You can temporarily bypass an alias by prefixing it with a backward slash:
You can temporarily bypass an alias by prefixing it with a backward slash:
`\gpt` .
`\gpt` .
Functions
## Functions
---------
- `git-branch-current` displays the current branch.
- `git-branch-current` displays the current branch.
- `git-commit-lost` lists lost commits.
- `git-commit-lost` lists lost commits.
- `git-dir` displays the path to the Git directory.
- `git-dir` displays the path to the Git directory.
- `git-hub-browse` opens the [GitHub][3] repository in the default browser.
- `git-hub-browse` opens the [GitHub][3] repository in the default browser.
- `git-hub-shorten-url` shortens [GitHub URLs][10].
- `git-hub-shorten-url` shortens [GitHub URLs][10].
- `git-info` exposes repository information via the `$git_info` associative
- `git-info` exposes repository information via the `$git_info` associative
array.
array.
- `git-root` displays the path to the working tree root.
- `git-root` displays the path to the working tree root.
- `git-stash-clear-interactive` asks for confirmation before clearing the stash.
- `git-stash-clear-interactive` asks for confirmation before clearing the stash.
- `git-stash-dropped` lists dropped stashed states.
- `git-stash-dropped` lists dropped stashed states.
- `git-stash-recover` recovers given dropped stashed states.
- `git-stash-recover` recovers given dropped stashed states.
- `git-submodule-move` moves a submodule.
- `git-submodule-move` moves a submodule.
- `git-submodule-remove` removes a submodule.
- `git-submodule-remove` removes a submodule.
Theming
## Theming
-------
To display information about the current repository in a prompt, define the
To display information about the current repository in a prompt, define the
following styles in the `prompt_name_setup` function, where the syntax for
following styles in the `prompt_name_setup` function, where the syntax for
@ -361,7 +358,7 @@ zstyle ':prezto:module:git:info:context:subcontext' format 'string'
### Main Contexts
### Main Contexts
| Name | Format Code | Description
| Name | Format Code | Description
| --------- | :---------: | ---------------------------------------------------
| --------- | :---------: | ----------------------------------------------------
| action | %s | Special action name
| action | %s | Special action name
| ahead | %A | Commits ahead of remote count
| ahead | %A | Commits ahead of remote count
| behind | %B | Commits behind of remote count
| behind | %B | Commits behind of remote count
@ -374,7 +371,7 @@ zstyle ':prezto:module:git:info:context:subcontext' format 'string'
### Concise Contexts
### Concise Contexts
| Name | Format Code | Description
| Name | Format Code | Description
| --------- | :---------: | ---------------------------------------------------
| --------- | :---------: | ----------------------------------------------------
| clean | %C | Clean state
| clean | %C | Clean state
| dirty | %D | Dirty files count
| dirty | %D | Dirty files count
| indexed | %i | Indexed files count
| indexed | %i | Indexed files count
@ -390,7 +387,7 @@ zstyle ':prezto:module:git:info' verbose 'yes'
### Verbose Contexts
### Verbose Contexts
| Name | Format Code | Description
| Name | Format Code | Description
| --------- | :---------: | ---------------------------------------------------
| --------- | :---------: | ----------------------------------------------------
| added | %a | Added files count
| added | %a | Added files count
| clean | %C | Clean state
| clean | %C | Clean state
| deleted | %d | Deleted files count
| deleted | %d | Deleted files count
@ -435,22 +432,21 @@ Last, add `$git_info[prompt]` to `$PROMPT` and `$git_info[rprompt]` to
`$RPROMPT` respectively and call `git-info` in the `prompt_name_preexec` hook
`$RPROMPT` respectively and call `git-info` in the `prompt_name_preexec` hook
function.
function.
Authors
## Authors
-------
*The authors of this module should be contacted via the [issue tracker][6].*
*The authors of this module should be contacted via the [issue tracker][6].*
- [Sorin Ionescu ](https://github.com/sorin-ionescu )
- [Sorin Ionescu ](https://github.com/sorin-ionescu )
- [Colin Hebert ](https://github.com/ColinHebert )
- [Colin Hebert ](https://github.com/ColinHebert )
[1]: http://www.git-scm.com
[1]: https ://www.git-scm.com
[2]: https://github.com/defunkt/hub
[2]: https://github.com/defunkt/hub
[3]: https://www.github.com
[3]: https://www.github.com
[4]: http://www.manpagez.com/man/8/gpt/
[4]: https ://www.manpagez.com/man/8/gpt/
[5]: http://www.manpagez.com/man/1/gs/
[5]: https ://www.manpagez.com/man/1/gs/
[6]: https://github.com/sorin-ionescu/prezto/issues
[6]: https://github.com/sorin-ionescu/prezto/issues
[7]: https://github.com/sorin-ionescu/prezto/issues/219
[7]: https://github.com/sorin-ionescu/prezto/issues/219
[8]: http://www.kernel.org/pub/software/scm/git/docs/git-log.html
[8]: https ://www.kernel.org/pub/software/scm/git/docs/git-log.html
[9]: https://getgb.io/
[9]: https://getgb.io/
[10]: https://github.com/blog/985-git-io-github-url-shortener
[10]: https://github.com/blog/985-git-io-github-url-shortener
[11]: http://www.manpagez.com/man/1/gm/
[11]: https ://www.manpagez.com/man/1/gm/