Reputation: 17269
I use the following commands:
git add *
git commit -am 'updating'
And I encountered below:
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: webkomiks (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
What I am supposed to do?
I continued with:
git push myrep master
I only saw the folder in github not the files inside the folder.
thanks
Upvotes: 2
Views: 244
Reputation: 1556
Is webkomiks a directory or a file or something else?
If you want to add webkomiks, as Johan Paul said, run 'git add webkomiks'
Try git clean -n
and it should give you some more info. If its a directory, it will say 'Would not remove'. Of course you can remove it by adding '-d
' option.
Upvotes: 0
Reputation: 150565
Is it possible that webcomiks
is a submodule?
If so, then you need to go into the submodule directory, commit and push the changes that are in that submodule, and then go up to the main repository and commit from there.
Upvotes: 0
Reputation: 2456
As the error message states:
Changes not staged for commit:
...
modified: webkomiks (modified content)
That's probably a dir? That's not included in the commit. So do git add webkomiks
and try again.
Upvotes: -1
Reputation: 1961
You didn't commit recursively into subdirectories.
Try git add .
instead of git add *
.
Upvotes: 2