【Django】git建仓上传时遇到的小问题
根据教程 http://tutorial.djangogirls.org/zh/deploy/,在github上建仓上传项目文件。
执行到 git push -u origin master 时,输入用户名和密码未能上传成功:
error: src refspec master does not match any. error: failed to push some refs to '<目标地址>'
执行以下代码后解决问题:
git init git add . git commit -m 'message' git push -u origin master