9 lines
344 B
Fish
9 lines
344 B
Fish
function gsa
|
|
echo "-- enter the repository to add as a submodule --"
|
|
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 $repo"
|
|
end
|