每当我尝试在第一次提交时将文件推送到我新创建的repo时出错

时间:2017-12-11 06:09:18

标签: git github

Ashan@DESKTOP-5GNFI1I MINGW64 ~/Desktop/SpyGlass (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/ashan1995/spyglass.git'

我使用 Windows 10 中的 Gitbash 。 我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

你试过这个吗?

//Create a file.
touch README.md
git add README.md
git commit -m "initial commit"
git push origin master
相关问题