git-submodules

Checkout git submodule in Azure Pipeline with SSH

点点圈 提交于 2020-01-16 12:33:50
问题 I try to checkout the git submodules via ssh instead of https (default if you use "Checkout submodules") in an Azure DevOps Pipeline. With the option in the picture it works - but for the developers it's annoying to enter the password all the time if they are working with the repository. For that I used the following instructions to add the ssh key. I created a public and a private key, and copied the known_host entry. That's my YAML file snippet: stages: - stage: DeployBackend jobs: - job:

How to do a bash foreach csv field to 'git submodule add'

青春壹個敷衍的年華 提交于 2020-01-15 18:33:18
问题 I have no idea how to write Bash and after googling around for a while, I'm in no better position to achieve what I need. I have a csv file consisting of a list of git submodules and their paths-to-be in the super project: git://github.com/demo/git-repo.git, extensions/git-repo git://github.com/demo/another-repo.git, extensions/another-repo I would like to have a bash script which would read each line of the file, put each part of the line (separated by the comma) into the following command

How to do a bash foreach csv field to 'git submodule add'

99封情书 提交于 2020-01-15 18:33:02
问题 I have no idea how to write Bash and after googling around for a while, I'm in no better position to achieve what I need. I have a csv file consisting of a list of git submodules and their paths-to-be in the super project: git://github.com/demo/git-repo.git, extensions/git-repo git://github.com/demo/another-repo.git, extensions/another-repo I would like to have a bash script which would read each line of the file, put each part of the line (separated by the comma) into the following command

VSTS git build fails with git submodule

允我心安 提交于 2020-01-15 09:30:51
问题 I have a git repos A and B in a Visual Studio Team Services Project. B is a submodule of A with the following config in .gitmodules: [submodule "my_submodule"] path = somefolder/my_submodule url = https://xxx.visualstudio.com/xxx/_git/B If I do a build with the option Repository/Checkout Submodules I get the following error: Repository type=TfsGit localPath=C:\a\1\s clean=False sourceBranch=refs/heads/submoduletest sourceVersion=0378dd86db31e4d7bff8de86a482b3d8e72dd3ba Syncing repository: A

How to tell git to ignore git sub modules?

浪尽此生 提交于 2020-01-14 04:26:25
问题 My "real" .git folder is in /var/www . I want to push the whole folder to github. Unfortunately, a few git sub modules are excluded. For example the folder w/extensions/Lingo is excluded. But w/extensions/Lingo/.git isn't "my" git sub module. Git was only used to download w/extensions/Lingo and will be used to update that folder. No own development planed. How can I tell my "real" git /var/www/.git to ignore any sub modules such as w/extensions/Lingo/.git ? In other words, what I want to tell

git submodule not working after deleting

a 夏天 提交于 2020-01-14 01:44:54
问题 I have a project with a submodule set up. A colleague by accident deleted the target folder and made a symlink instead (pointing outside the project folder), committing it. Now I'm not able to restore the submodule anymore, even after deleting the link and creating an empty directory. .gitmodule and .git/config haven't changed. git submodule add and git submodule init don't do anything. I can't revert the problematic commit, because it also contains a lot of other changes. How can this be

Using ssh vs https with github submodules

孤人 提交于 2020-01-13 19:15:22
问题 I would like to set up a public GitHub repo with submodules. GitHub offers two ways of connecting - https:... & git@... protocols. For the team working on the project, git@... is much easier to use because we all use proper ssh certificates. But for the casual user who is not a member of the team, https:... is the only option. The git submodules require a full URL. How can we set up repository submodules so that both the developers and casual contributors can use the system equally well?

Git add remotes to submodules recursively

风格不统一 提交于 2020-01-13 18:22:30
问题 I have a git repo located on my machine at /path/to/repo , which contains several submodules, /path/to/repo/submoduleA and /path/to/repo/foo/bar/submoduleB . Due to a workflow that I cannot change, the git repo gets copied (as in scp -r) to a remote server, where I work on the code. I want to pull the changes back to the original machine. Cloning/pushing from the remote server isn't an option. It is tedious to go to each submodule and do git remote add <name> <url>:/server/path/to/repo/<path

How can I get git clone --recursive A B to use the the submodule repositories in A?

筅森魡賤 提交于 2020-01-13 14:54:10
问题 It seems that if project A has submodules with remote urls, then git clone --recursive A B insists on pulling down copies of each submodule repository from the remote url. Is there a way to get git to clone the submodule repositories from the copies in A instead of pulling from the remote repositories? I suppose I could do something like: git clone A B cd A git submodule --quiet foreach 'echo [submodule \"$path\"]\\n path = $path\\n url = $toplevel/$path ' > ../B/.gitmodules cd ../B git

Errors Merging a Git Submodule into its Parent Repository in OS X

断了今生、忘了曾经 提交于 2020-01-07 08:28:10
问题 I have cloned a parent repository ' objc4 ' from https://github.com/RandomDSdevel/objc4 to the local path ' /Volumes/Development/Repositories/objc4 .' This parent repository contains a submodule ' OBJC4-437.1-Runtime ' which I have set up to mirror the contents of https://github.com/macmade/OBJC4-437.1-Runtime at the local path ' /Volumes/Development/Repositories/objc4/runtime .' I would like to merge this submodule into its parent repository and have already attempted to do so using these