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