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 +