error: src refspec master does not match any

error: src refspec master does not match any,error: failed to push some refs to 'git@xieyonghui.com:nick/demo.git'

resolved

setup by setup:

git init

git remote add origin git@xieyonghui.com:nick/demo.git

git add .

git commit -m "Initial commit"

git push -u origin master
git