简体   繁体   中英

Git / Gitosis - Repository Read Access Denied

I have installed git on a ubuntu Server. From my local machine using tortoiseGIT I have cloned the gitosis-admin to my local machine. Everything worked fine. After checking out the gitosis-admin repository to manage my keys and my Repositories in gitosis.conf, i added the new repository gittest to the .conf file. Now the fallowing steps failed:

  • create a new folder on my local manchine named gittest
  • added a testfile
  • committed
  • push the local repository to the server the client says:

"ERROR:gitosis.serve.main:Repository read access denied"

This error also appears if I init the repository on the server using "git init" in a new created folder at /srv/git/repositories/gittest, add a file so that the repository to clone isn't empty, an try to clone it to my local machine.

Can anybody help to solve this error?

尝试在/ srv / git / repositories / gittest中运行git init --bare而不是git init

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM