fish/functions/git.fish
2024-05-22 18:13:33 +02:00

10 lines
338 B
Fish

function gsa
echo "-- enter the repository to add as a submodule: https://"
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 path
echo "git submodule add --branch $branch --name $path $repo"
end