From b2021a76ec3bdab22b1d5340c4e6339f3945f55c Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 22 May 2024 17:46:04 +0200 Subject: [PATCH] addet gsa function to add submodules to git repos! --- functions/git.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 functions/git.fish diff --git a/functions/git.fish b/functions/git.fish new file mode 100644 index 0000000..df354bd --- /dev/null +++ b/functions/git.fish @@ -0,0 +1,8 @@ +function gcm + read -p "-- enter the repository to add as a submodule: https://" repo + read -p "-- enter the branch to checkout (main/master..): " branch + read -p "-- enter the relative path, where the submodule will be cloned to. (don't use fist /" path + + echo "git submodule add --branch $branch --name $path $repo" +end +