2
我按照教程http://blog.agdunn.net/?p=277設置git和gitosis。git/gitosis創建一個新的回購
我可以克隆gitosis-admin回購編輯它並將其推送到服務器。當我查看服務器上的文件時,它們與本地副本相同,因此一切都很好。
問題出在我嘗試創建自己的回購時。在gitosis.conf的內容添加以下
[group exampleproject]
writable = myproject
members = ian
然後我做了我的本地機器下面創建一個回購
mkdir myproject
cd myproject
然後我創建了一個自述文件和COMMITED我的變化
git add .
git commit -m 'My first commit of readme file'
然後,我添加遠程
git remote add myserver [email protected]_name:/var/git/repositories/myproject.git
然後,當我嘗試使用推下
git push myserver master:refs/heads/master
我得到的錯誤信息
fatal: '/var/git/repositories/myproject.git': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
有人能看到我在做什麼錯?
感謝
不下雨您的遊行或任何東西,但你不妨考慮使用gitolite代替的gitosis的。 – Olipro
@Olipro:+1對於gitolite - https://github.com/sitaramc/gitolite – plaes
我沒有看到它在我的遊行中正在下雨。我剛剛嘗試過gitolite,並在使用它的第一個小時後設置/克隆/推送了存儲庫。從我那裏得到的gitolite +1。感謝您的建議。 – ianckc