Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add git submodule

$ git submodule add <remote_url> <destination_folder>
Comment

git submodule

git submodule add link // add submodule
git submodule update --remote // update submodule
// delete 
git rm -r the_submodule
rm -rf .git/modules/the_submodule

submodule init // before you clone a repo
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

git submodule sync: Updates the description of submodules cached by git in .git/modules
git submodule update --init --recursive --remote for Updates the working copy
[submodule "api"]
    path = api
    url = https://github.com/<another_repo>/api.git
    branch = main
Comment

git submodule push

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

PREVIOUS NEXT
Code Example
Shell :: fix low battery life windows 
Shell :: view files added to next commit after running git add 
Shell :: vscode unable to resolve your shell environment 
Shell :: gpg sign git commit in gitlab ci 
Shell :: set environmental variables for one command powershell 
Shell :: linux index.html datei auflistung alle dateien 
Shell :: how to check if tab was pressed in bash 
Shell :: install bpytop arch linux 
Shell :: git commit allow empty to trigger ci 
Shell :: The last character of the "bash" prompt is usually 
Shell :: ring get environment variables 
Shell :: eb setenv 
Shell :: install brave browser for kali linux 
Shell :: GOOGLE_CREDENTIALS to the terraform Cloud workspace 
Shell :: install bjsmasth 
Shell :: bash bracket operators 
Shell :: vdi to ProxMox 
Shell :: how to run packages installed locally 
Shell :: stop gnome display manager 
Shell :: command line linux delete all the line 
Shell :: install mariadb ubuntu linixize 
Shell :: install sapper 
Shell :: Git - Take a peek at a file of another branch 
Shell :: blocked myself from ssh 
Shell :: linux poid dossier 
Shell :: selinux apache 403 
Shell :: change webcam whitebalance ubuntu 
Shell :: Err:15 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release 404 Not Found [IP: 91.189.95.83 80] 
Shell :: after restarting linux mac address resets 
Shell :: api uber eat node js 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =