fish/functions/git.fish
2024-05-22 17:52:52 +02:00

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