I'm trying to add files to a git repo that were somehow previously added as a submodule. I don't know how that happened.
I cannot find a .gitmodules file anywhere and my .git/config looks like this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = [email protected]:frankV/dotfiles.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
I need to include the directory for vim vundle but I can't due to the issues stated above. To this point I have been unable to remove it from this repo or add any files below the directory for vundle.
When I try to add a file I get: fatal: Path '_vim/bundle/vundle/autoload/vundle' is in submodule '_vim/bundle/vundle'
and my git status output:
...
# modified: _vim/bundle/Command-T (untracked content)
# modified: _vim/bundle/The-NERD-Commenter (untracked content)
# modified: _vim/bundle/The-NERD-tree (untracked content)
# modified: _vim/bundle/matchit.zip (untracked content)
...
As you can see vundle is not in this list and it's fine to not track these submodules as they install via vundle... all the more reason however to get vundle working!
.gitfolders or.gitmodulesfiles inside of that bundle folder? It might be a nested repo somewherels -a, I'm assuming .gitmodules would be indotfiles/and to clarify, the plugins [submodules] listed undergit statushave a.gitdirectory. Vundle is the only one without one.