fish/functions/git.fish
2024-05-22 18:39:01 +02:00

9 lines
338 B
Fish

function gsa
echo "-- enter the repository to add as a submodule --"
read repo
echo "-- enter the branch to checkout (main/master..) --"
read 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 $repo"
end