2014-06-20 126 views
0

我卸在Heroku上的應用ROR和我面臨一個問題:致命的:HTTP請求失敗和其他問題:錯誤:請求的URL返回的錯誤:在訪問https://github.com/priroda/first_app.git/info/refs致命的:HTTP請求失敗

[email protected]:~$ mkdir rails_projects 
[email protected]:~$ cd rails_projects 
[email protected]:~/rails_projects$ rails new first_app 
[email protected]:~/rails_projects$ cd first_app 
[email protected]:~/rails_projects/first_app$ git init 
Initialized empty Git repository in /home/ark/rails_projects/first_app/.git/ 
[email protected]:~/rails_projects/first_app$ git add . 
[email protected]:~/rails_projects/first_app$ git commit -m "Initialize repository" 

[email protected]:~/rails_projects/first_app$ git log 
commit e8586bdf77a1aa260c25987c4860891333659033 
Author: Ark <[email protected]> 
Date: Fri Jun 20 19:21:19 2014 +0400 

    Initialize repository 

[email protected]:~/rails_projects/first_app$ git remote add origin https://github.com/priroda/first_app.git 

[email protected]:~/rails_projects/first_app$ git push -u origin master 
Username for 'https://github.com': priroda 
Password for 'https://[email protected]': 
error: The requested URL returned error: 403 while accessing https://github.com/priroda/first_app.git/info/refs 
fatal: HTTP request failed 
+0

看看這個問題:http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed –

回答

1

403這似乎你沒有存取權限。如果是這樣的:

  • 你的回購檢查設置
  • 嘗試使用SSH URL遠程(所有關於git的遠程URL here)推。

另一個問題可能是回購已經存在......如果您嘗試推送到現有存儲庫,那麼將無法防止數據丟失。