10 lines
338 B
Fish
10 lines
338 B
Fish
function gsu
|
|
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
|
|
|