2016-02-17 38 views
0

我得到一個錯誤「致命的:無法訪問‘https://github.com/link:username/repo.git/’:請求的URL返回錯誤:400」雖然我嘗試了一些新的文件推送到倉庫。但我可以推送現有的文件,這些文件是我之前從存儲庫中提取的。問題在於新文件。我使用的是'ubuntu 14.04 LTS',我在終端上的命令如下: -推到GitHub的庫不工作

git init 
git add . 
git commit -m "made some changes" 
git remote add origin https://github.com/link:username/repo.git 
git push -u origin master 
+1

https://github.com/username/repo使用這樣 –

+0

已經嘗試過,一個太.. –

+0

https://github.com/cynerellc/pdfactionresult –

回答

1

您是否檢查過--set-upstream選項?爲什麼link:username在url中?在github上AFAIK網址是像https://github.com/[your_user_name]/[repo].git

+1

是不是'[your_user_name]'應該是'[username_of_person_owning_the_repo]'?例如:如果您擁有該項目,並且如果我推動更改,用戶名將是您的,而不是我的。 –

+1

啊哈!當然。 你讓我在所有者的微妙之處... –

+0

讓我檢查... –