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 example

$ git submodule init
Submodule 'DbConnector' (https://github.com/chaconinc/DbConnector) registered for path 'DbConnector'
$ git submodule update
Cloning into 'DbConnector'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 0), reused 11 (delta 0)
Unpacking objects: 100% (11/11), done.
Checking connectivity... done.
Submodule path 'DbConnector': checked out 'c3f01dc8862123d317dd46284b05b6892c7b29bc'
Comment

PREVIOUS NEXT
Code Example
Shell :: Malformed entry 2 in list file /etc/apt/sources.list.d/docker.list ([option] not assignment) 
Shell :: src/checkdep_freetype2.c:1:10: fatal error: ft2build.h: No such file or directo 
Shell :: git keep empty folder 
Shell :: terminal trash folder 
Shell :: immutable byte 
Shell :: how to create docker secret in kubernetes 
Shell :: sed remove until first occurrence 
Shell :: ubuntu bluetooth microphone not working 
Shell :: grep show lines between matches 
Shell :: composer install ubuntu 
Shell :: cache clear env prod symfony 3.4 
Shell :: hsdpa modem software for linux 
Shell :: vi search 
Shell :: bash sum float numbers 
Shell :: when hostname ansible 
Shell :: how to find zero byte files 
Shell :: linux print directory tree 
Shell :: YCM core library not detected 
Shell :: Endpoint Security VPN build 986000724 is already installed on this computer. 
Shell :: powershell string contains 
Shell :: ubuntu change /etc/resolv.conf 
Shell :: input prompt in command line 
Shell :: rearrange pdf pages linux 
Shell :: power shell 
Shell :: Realtek RTL8812BU Network WiFi Adapter kali linux driver 
Shell :: update vs code ubuntu 
Shell :: if output is null bash 
Shell :: download spyder without anaconda 
Shell :: clone branch git 
Shell :: how to checkout to another branch in git 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =