From 45590c24e9431dd736a44262ce3458822731166f Mon Sep 17 00:00:00 2001 From: work Date: Sat, 18 Nov 2023 06:11:37 +0300 Subject: [PATCH] git : add gg. --- .README.md | 1 + .config/bash/module/git.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.README.md b/.README.md index 4161683..fb87d68 100644 --- a/.README.md +++ b/.README.md @@ -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 `|Get git repo from my own git. ## Ls. diff --git a/.config/bash/module/git.sh b/.config/bash/module/git.sh index b5eba06..83ee75c 100644 --- a/.config/bash/module/git.sh +++ b/.config/bash/module/git.sh @@ -67,6 +67,13 @@ gu() git config user.email "${email}" } +# Get my git repo. +# Usage: gg +gg() +{ + git clone https://git.voronind.com/voronind/"${1}" +} + # autocomplete. _completion_loader git &> /dev/null __git_complete gps _git_push &> /dev/null