addet gsa function to add submodules to git repos!

This commit is contained in:
pika 2024-05-22 17:46:04 +02:00
parent 8132204c61
commit b2021a76ec

8
functions/git.fish Normal file
View file

@ -0,0 +1,8 @@
function gcm
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