3

I don't know why but it won't add the files in the folder I'm trying to add.

here's what I get

$ git commit -m 'come on'
[master (root-commit) fed7d44] come on
 1 file changed, 1 insertion(+)
 create mode 160000 issp

There's many more than one file I want to upload.

I had tried the following before in order to add everything I tried:

it rm -f --cached issp

The result was nothing, I'm still getting the same errors.

I also tried the following commands:

git submodule update --init

And then tried to clone again using the following command

git clone --recursive my-repo-or-whatever

And got the following output for both

No submodule mapping found in .gitmodules for path 'issp'

and:

Cloning into 'issrep'...
Password for 'https://pablo-r4001@bitbucket.org': 
remote: Counting objects: 2, done.
remote: Total 2 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (2/2), done.
Checking connectivity... done.
No submodule mapping found in .gitmodules for path 'issp'

No idea what to do about this. are these submodules really even necesary? I was just trying to add a folder to the cloned repo.

I'm desperate, any help is much, much appreciated.

paula.em.lafon
  • 553
  • 2
  • 6
  • 15

1 Answers1

2

issp must be a nested repo: adding and committing will create a gitlink (a special entry in the index). See more at "Git repository in a git repository".

But it is not a submodule.

issrep is a submodule (registered both as a gitlink in the index and in the .gitmodules)

So check if the folder you want to add and commit (issp) doesn't already include .git folder in it: that would make it a nested repo.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250