addet gsa function to add submodules to git repos!
This commit is contained in:
parent
8132204c61
commit
b2021a76ec
1 changed files with 8 additions and 0 deletions
8
functions/git.fish
Normal file
8
functions/git.fish
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue