People ask and ask how git submodule add in case where both repos are private?
git submodule add private repo in private repo
125 views Asked by Андрей Тернити At
1
There are 1 answers
Related Questions in GIT-SUBMODULES
- Git hook for git worktree doesn't run "git submodule update --init --recursive" properly
- How to switch branches when a feature branch introduces submodule changes?
- How do I fix error in visual studio code of submodules not opening/cloning correctly?
- Airflow - where to place Dataset definition
- Github action mirroring with automatic submodules resolve
- GIT repo with submodule that can point to two different repositories
- Configuring Submodules for GitHub and Gerrit public repo Integration
- Is it possible to use different libraries as git submodules in a turborepo?
- Is it possible to maintain a git submodule under multiple paths?
- Git submodule: link submodule to local development checkout
- Git nested repo in Visual Studio Code
- Submodules: git status vs git checkout - untracked files
- Sharing a submodule between projects without duplicating the submodule files
- Git sub-repository with URL relative to its parent repository
- In SourceTree, Clone seems to bring submodule files from GitHub repos then seems to delete them
Related Questions in PRIVATE-REPOSITORY
- Sonatype Nexus Private Repository unable to prompt for username and password in runtime while pulling the package using cli
- git submodule add private repo in private repo
- Git error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet
- How to Ensure Pip Is Installing dist-info rather than egg-info
- Publishing a Python package to a private repo using Poetry with SSH
- No GitHub Actions logs show when pushing code to a private Repo
- Is there a way to mimic the functionality of a wiki in a free private github repo?
- How to integrate GitHub private repository to my Gerrit server
- Jenkins unable to connect to github private repo
- composer.json requires {pluginname}, it could not be found in any version, there may be a typo in the package name
- Unable to "go get" module from private github repo on centos 7
- Trying to call a workflow in a private repo under same organization but getting error
- Installing already existing laravel application with private packages
- How to quote a variable inside wget command
- Using Github cache action to store packages to speed up action run times
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
This is my example.
Let's generate key pairs for every private repo.
Via FireFox I open
github.comand manually addmyMother_key.pubfile to[email protected]:AndreiCherniaev/mother.gitrepo (Allow write access checkbox yes) andmyBaby_key.pubto[email protected]:AndreiCherniaev/baby.git(Allow write access checkbox yes)I am Using multiple repositories on one server So my
~/.ssh/configfile containsWhere
babysubdomain.mothersubdomain.is any text.Let's clone baby repo.
Just for fun let's add any public repo as submodule for baby. In my example I will use Buildroot project
Let's back to
Download/and clonemotherrepoLet's add submodule to
motherrepoNow let's remove local copy of mother/ from your PC
Let's clone mother with baby with buildroot
Now we have repo mother with submodule baby with submodule myBuildroot/buildroot/
Thanks Gubatron and link. Tested on Ubuntu 22.