2014-02-21 182 views
0

我剛開始使用GitHub,我只是尋找簡單而直接的一套步驟,將本地計算機上的項目上傳到我在GitHub網站上創建的存儲庫。如何創建本地存儲庫並上傳到GitHub上的存儲庫?

這個方法我試過從以前的問題在這裏How to upload a project to Github但是當我到最後一步git push origin master我得到這些錯誤fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.我不明白爲什麼會這樣,因爲我下面給信中的說明。

這是我如何從創建本地資源庫的執行上傳到推:

cd C:\Users\Brian Smith\Documents\Visual Studio 2013\Projects\KinectKickboxingBVversion1 

git init 

git add KinectKickboxingBVversion1 

git commit -m "adding files". 

git remote add originNew https://github.com/BrianJSmith/College_Kinect_Project.git 

git push origin master 

回答

2
git remote add origin https://github.com/BrianJSmith/College_Kinect_Project.git 

originNew

+1

大聲笑我想我需要休息一會兒,謝謝 –