git-submodules

How to fix “modified content, untracked content” in git?

余生颓废 提交于 2020-05-24 14:33:33
问题 The objective is to commit a git branch. The output of "git status" for the branch is: On branch zeromq_new Your branch is up to date with 'origin/zeromq'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: log4cplus (modified content, untracked content) modified: ../lib/notification/cppzmq (modified

cloning a repo with nested submodules does not work

ぃ、小莉子 提交于 2020-05-15 17:57:09
问题 I have multiple separate git repos which have no submodules in them. The task is to assemble a hierarchical tree of those repos and use it to share between users. This is trivial with 'subtree' or 'subrepo' schemes, but it seems not to work with 'submodules'. The reason to try submodules is slow git performance on the nfs systems. In my case checkout takes more than 2 hours I am trying to create a shared repo which contains submodules. So far the very first attempt to clone fails. Here is the

Error after removing submodule: The following path is ignored by one of your .gitignore files:

巧了我就是萌 提交于 2020-04-10 07:34:34
问题 I'm getting this error after I've removed a submodule. The path in question is not in my .gitignore file, nor is there anything relevant in my .git/info/exclude file. I don't have a .gitignore_global file. Why is git trying to ignore this path and how can I fix this? The following path is ignored by one of your .gitignore files: MyTest/MyTest/lib/submodules/ScreenRecorder Use -f if you really want to add it. This is the command I'm trying to execute: git submodule add https://github.com

Convert .gitmodules into a parsable format for iteration using Bash

末鹿安然 提交于 2020-04-07 04:00:44
问题 Background I would like to make a shell function that takes .gitmodules and iterates over each module executing certain commands based off of each submodules properties (e.g. <PATH> or <URL> or <BRANCH> ). ➡️ The default format of .gitmodules : [submodule "PATH"] path = <PATH> url = <URL> [submodule "PATH"] path = <PATH> url = <URL> branch = <BRANCH> ➡️ Pseudocode: def install_modules() { modules = new list fill each index of the modules list with each submodule & its properties iteratate

Convert .gitmodules into a parsable format for iteration using Bash

偶尔善良 提交于 2020-04-07 03:59:21
问题 Background I would like to make a shell function that takes .gitmodules and iterates over each module executing certain commands based off of each submodules properties (e.g. <PATH> or <URL> or <BRANCH> ). ➡️ The default format of .gitmodules : [submodule "PATH"] path = <PATH> url = <URL> [submodule "PATH"] path = <PATH> url = <URL> branch = <BRANCH> ➡️ Pseudocode: def install_modules() { modules = new list fill each index of the modules list with each submodule & its properties iteratate

How to use same protocol for git submodules?

旧城冷巷雨未停 提交于 2020-03-20 06:36:02
问题 In a git repository R I have a submodule that I initialized with the following command: git submodule add git@mygitserver... Now a user just cloned R using https and get an error when running git submodule init git submodule update because he doesn't have ssh (with public key uploaded on the server) access. So my question is, is it possible to create a submodule that will automatically uses the same protocol than the one used to clone the parent repository on the git submodule update command

How to use same protocol for git submodules?

白昼怎懂夜的黑 提交于 2020-03-20 06:35:08
问题 In a git repository R I have a submodule that I initialized with the following command: git submodule add git@mygitserver... Now a user just cloned R using https and get an error when running git submodule init git submodule update because he doesn't have ssh (with public key uploaded on the server) access. So my question is, is it possible to create a submodule that will automatically uses the same protocol than the one used to clone the parent repository on the git submodule update command

How to use same protocol for git submodules?

前提是你 提交于 2020-03-20 06:35:05
问题 In a git repository R I have a submodule that I initialized with the following command: git submodule add git@mygitserver... Now a user just cloned R using https and get an error when running git submodule init git submodule update because he doesn't have ssh (with public key uploaded on the server) access. So my question is, is it possible to create a submodule that will automatically uses the same protocol than the one used to clone the parent repository on the git submodule update command

Git: Zombie submodule

我们两清 提交于 2020-02-02 13:56:04
问题 So I've somehow managed to create a zombie git submodule. $ cat .gitmodules [submodule "Source/CrashProbe"] path = Source/CrashProbe url = https://github.com/bitstadium/CrashProbe.git git thinks the submodule is untracked: $ git status On branch master Your branch is up-to-date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be committed) Source/CrashProbe/ Deinit doesn't work: $ git submodule deinit Source/CrashProbe error: pathspec 'Source/CrashProbe'

How to change git submodules url locally?

China☆狼群 提交于 2020-01-31 08:41:58
问题 The original .gitmodules file uses the hard coded https urls but for some automated tests I clone from ssh and make the submodule urls relative as in ../ModuleName . I don't want to push these changes back into the repo either. # change the https://github.com/ with git@github.com: sed -i 's/https:\/\/github.com\//git@github.com:/g' ".git/config" # delete the url lines from the submodule blocks of .git/config sed -i '/submodule/ {$!N;d;}' ".git/config" # change hardcoded https:// urls of