I clone my repository with:
git clone ssh://xxxxx/xx.git
But after I change some files and add and commit them,
add
commit
I had the same problem when I missed to run:
git add .
(You must have at least one file, or you will get the error again.)