我的客戶將我加入Github的私有存儲庫,並具有推送權限。我試圖做我的第一次提交,我遵循this指南設置我的第一次提交。但我在推送我的提交時發現錯誤。如何設置和發佈github中的第一次推送?
我要做的就是:
git init
git add .
git commit -m "First commit"
git remote add origin remote https://github.com/username/rep.git
git remote -v
git push origin master
一切順利完美,但最後一行給了我下面的錯誤。
C:\wamp64\www\res>git push origin master
remote: Repository not found.
fatal: repository 'https://github.com/username/rep.git/' not found
通過在[GitHub的文檔這裏]列出的調試步驟(工作https://help.github.com/articles/ error-repository-not-found /)並返回,如果仍然無法解決問題 –
您是否曾在github上創建存儲庫? – MrTux
我的客戶已創建一個存儲庫並添加了一些文件。我沒有克隆存儲庫的問題,並且我嘗試了文檔。它沒有幫助,但我用桌面應用程序,它工作正常。但我擔心命令提示符。 –