Questions tagged [submodule]
12 questions
26
votes
3 answers
Rescuing files and commits from "no branch" in git
I started working on some files I had in a git submodule under another project. However, since it was a git submodule it never checked out "master" and instead just checked out the head and placed all the files in the folder in "no branch".
Now that…
Xeoncross
- 4,432
- 9
- 36
- 48
9
votes
2 answers
My Git submodules are not loading all files
I have about 8 submodules in my project (/modules/..) and some of them are not fully checking out. In other words, when I run
git submodule init
git submodule update
Some of the submodule directories do not contain the all the files. My first…
Xeoncross
- 4,432
- 9
- 36
- 48
6
votes
2 answers
What's the benefit of specifying a branch for a submodule?
Reading the documentation of the git submodule command I found out that you can specify a branch for a submodule using
git submodule set-branch -branch --
This results in a config entry in the .gitmodules file
> git…
fabian
- 113
- 1
- 1
- 7
4
votes
1 answer
git submodule foreach git pull origin master vs. git pull --recursive-submodules
I manage a repository with several submodules. For a while now I've been using
$ git submodule foreach git pull origin master
to pull in the latest changes for all of these guys. However, recently I learned about
$ git pull…
Ncat
- 191
- 2
- 5
2
votes
1 answer
Can't add particular repo as a submodule
I'm switching to using submodules for my vim plugins. The usual way of doing this is:
$ git submodule add https://github.com/vim-scripts/a.vim bundle/a.vim
Cloning into 'bundle/a.vim'...
etc, etc
This works fine with every plugin but Gundo:
$ git…
Dean
- 2,720
- 1
- 23
- 24
2
votes
1 answer
Git submodules with the same name
Is it possible to have multiple Git Submodules to have the same name but with different path?
I want to have the same name because they do slightly different, but essentially the same thing.
I am able to recognize what does what, when I know the…
Porcupine
- 413
- 4
- 18
2
votes
0 answers
How to solve ImportError: No module named certifi
I am using Debian Testing, and I am trying to install couple modules one them is the discog client. However I keep hitting this certifi thing which I have no iodea about.
According to my python installation, certifi module is in the system. See the…
yarun can
- 990
- 2
- 17
- 36
1
vote
0 answers
How to automatically generate .gitsubmodules from existing directory structure?
I have a directory in which different sub-directories are github repos from many places. Now I want to upload them in another git repo. Is there anyway to generate .gitmodules for this parent repo. Or do I have to manually add each subdirectory…
sal_guy
- 11
- 1
0
votes
1 answer
Git Submodule Command not executing properly
I am trying to run this command:
$git submodule init
fatal: Not a git repository (or any of the parent directories): .git
Why am I getting this error. I am trying to set up ActionBarSherlock, but I can not get past the first command. I need ABS for…
Josiah
- 1,764
- 3
- 13
- 24
0
votes
2 answers
Easy way to create repo with submodules from folder containing git repos as subfolders
My case is ~/Library/Application Support/TextMate/Pristine Copy/Bundles there I have some bundles/folders which are all git repos. If I create git repo at Bundles folder, which will be the easiest/fastest way to add all bundles as submodules to this…
tig
- 4,624
- 4
- 34
- 49
0
votes
1 answer
hiding rows based on a cell for multiple worksheets
I have a folder with multiple worksheets each sheet is for a separate date. I want to hide rows based on the cell information in F5. I have managed to get this working for one sheet but not multiple.
Private Sub Worksheet_Change(ByVal Target As…
Gazzaw
- 1
0
votes
0 answers
Jenkins failing to checkout pipeline script when repository contains submodules
I have a Jenkins multibranch pipeline job that was working prior to adding submodules. Now that submodules have been added, the job hangs when trying to checkout the pipeline script from the repository.
Complete log (last line is where it…
Alex
- 1
- 1