I make a commit in git and get only one file changed and one insertion
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
- How to undo a git pull?
- .gitattributes & individual merge strategy for a file
- Git global ignore not working
- How to restore files that were removed by git?
- How to provide password ( that has @ ) when run “git clone https://remote.git” in python script?
- Git - restore a deleted folder from previous commit
$ 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'
Cloning into 'issrep'... Password for 'https://email@example.com': 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.
One Solution collect form web for “I make a commit in git and get only one file changed and one insertion”
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
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.