Search code examples
gitgithubcommitgithub-for-mac

git: I can add a directory, but at commit time I get "nothing to commit"


I'm trying to add two directories to a git repo. I can add them OK, but when trying to "commit", I get "nothing to commit". I'm following the add->commit->push sequence, but in this case it doesn't seem to be working. I have already pulled everything from the repo.

Any hints? thanks!enter image description here


Solution

  • You will be able to commit as soon as you make a change to/add a file. Adding a directory to git can't be commited itself; you need to add/edit a file inside the directory.

    Try adding something in css and comitting afterwards.