git : add gg.

This commit is contained in:
Dmitry Voronin 2023-11-18 06:11:37 +03:00
parent 877be2ec83
commit 45590c24e9
2 changed files with 8 additions and 0 deletions

View file

@ -522,6 +522,7 @@ Command|Description
`ga`|Git add with preview.
`gr [COUNT]`|Git rebase. 2 last commits by default. 0 means from root.
`gu [EMAIL]`|Configure git user as Dmitry Voronin with specified email (project).
`gg <REPO>`|Get git repo from my own git.
## Ls.

View file

@ -67,6 +67,13 @@ gu()
git config user.email "${email}"
}
# Get my git repo.
# Usage: gg <REPO>
gg()
{
git clone https://git.voronind.com/voronind/"${1}"
}
# autocomplete.
_completion_loader git &> /dev/null
__git_complete gps _git_push &> /dev/null