Thursday, April 21, 2016

error: src refspec master does not match any. error: failed to push some refs to 'https://github.com/XXXX.git'

error: src refspec master does not match any.

error: failed to push some refs to 'https://github.com/XXX.git'


That is the error message I got when trying to git push a newly created folder.

Then I realized that the repository got no file tracked although I git init'ed the folder.
After git add'ing the files in the folder, I git push'ed again and it worked.

No comments:

Post a Comment