fish/functions/git.fish
2024-05-22 18:26:08 +02:00

10 lines
355 B
Fish

function gsa
echo "-- enter the repository to add as a submodule: https://"
read -S repo
echo "-- enter the branch to checkout (main/master..): "
read -S branch
echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist /"
read -S path
echo "git submodule add --branch $branch --name $path https://$repo"
end