我克隆了我的存储库:
git clone ssh://xxxxx/xx.git
Run Code Online (Sandbox Code Playgroud)
但之后,我改变了一些文件,并add与commit他们,我想他们推到服务器:
git add xxx.php
git commit -m "TEST"
git push origin master
Run Code Online (Sandbox Code Playgroud)
但我得到的错误是:
error: src refspec master does not match any.
error: failed to push some refs to 'ssh://xxxxx.com/project.git'
Run Code Online (Sandbox Code Playgroud) 出于某种原因,我现在无法推动,而我昨天可以做到.也许我搞砸了一些东西.
这是发生的事情:
当我使用git push origin master时

我的工作目录和远程存储库是什么样的:

我有一个很奇怪的问题git和github.当我尝试推动时,我得到:
git push -u origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我添加了遥控器:
git remote add origin git@github.com:account-name/repo-name.git
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
为什么我的git不会推?我创建了存储库,我不断收到此消息:
C:\Users\petey_000\rails_projects\first_app>git push -u github master
Username for 'https://github.com': ***@gmail.com
Password for 'https://***@gmail.com@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/pete/first_app.git/' not found
Run Code Online (Sandbox Code Playgroud)