Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add submodule

$ git submodule add <remote_url> <destination_folder>
Comment

git add submodule branch

git submodule add -b branch_name URL_to_Git_repo optional_directory_rename
Comment

git add submodule with different name

git submodule add git@bitbucket.org:ironsand/cookbook-foo.git foo/
Comment

git submodule add

# Submodule is the git feature allowing a repository to include another 
# repository, with control on the branch of shared repository that is 
# considered by the host repository.

# In order to, for your own application, to create a submodule 
# associating the shared repository's main branch, do the following:
"""
git submodule add -b main [URL to Git repo] 
git submodule init
"""
# Now you can do
"""
git add .
git commit -m "folder is now a reusable result"
git push
"""
Comment

git submodule push

git submodule foreach "git add . && git commit -m 'update' && git push"
Comment

PREVIOUS NEXT
Code Example
Shell :: magento 2 reindex command line 
Shell :: shell read file line by line 
Shell :: users list linux 
Shell :: wget files matching regex 
Shell :: installing kubernetes with kops 
Shell :: add user to group 
Shell :: pnpm auto-install-peers 
Shell :: docker stop and remove specific container 
Shell :: git lines of code per user 
Shell :: nmap linux 
Shell :: difference between shell and terminal 
Shell :: Disable MacBook from Booting Automatically 
Shell :: git push rejected 
Shell :: tar extract 
Shell :: ubuntu extract rar file 
Shell :: How to Enable-Migrations? 
Shell :: list all built-in commands you can run in linux 
Shell :: size of a file linux 
Shell :: ubuntu facial recognition login 
Shell :: how to upload project on github using command 
Shell :: link php with php 8 mac 
Shell :: delete a line starting with sed 
Shell :: how to remove a remote origin in git and add new 
Shell :: install nvm via npm 
Shell :: count number of lines in git repo 
Shell :: git graph code 
Shell :: ubuntu mouse cursor disappears 
Shell :: How to install tensorflow-gpu in ubuntu and Linux 
Shell :: sqlmap get injection 
Shell :: install cpanm 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =