2013年1月30日 星期三

使用Octopress 與 github遇到的一些問題記錄

這兩天在學習使用octopress +github 寫部落格,因為對git 跟ruby以前完全沒用過,所以遇到的問題還不少,這邊做個記錄,方便自己以後查詢

 

 

# git remote -v show

 

 

 

1.執行rake deploy時遇到 permission denied(publickey)

原因:ssh publickey 錯誤

debug: 先使用command line 去連接github看看,如果正常的話會看到successful的訊息,如果不正卻就是得重新產生public key

或者重新上傳你的public key 

#ssh -T git@github.com

*重新產生public key

#ssh-keygen -lf ~/.ssh/id_rsa.pub

*將public key 上傳到 github account 上去,上傳位置如下

https://github.com/settings/profile

-->SSH keys 

 

 

 

執行rake deploy時,遇到 Github: Error: repository not found. fatal: The remote end hung up….

原因:因為repository 有分大小寫,我在執行時rake setup_github_pages 填入的repository (包括自己的帳號)沒注意到大小寫

可以使用 git remote show 看一下repository是否正確

#git remote -v show

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote