Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 333721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:59:16+00:00 2026-05-12T09:59:16+00:00

I have installed gitosis, but i have strange thing when i’m working with repos.

  • 0

I have installed gitosis, but i have strange thing when i’m working with repos.
In config i have

[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = me@server me@laptop

[group prj1]
writable = prj1
members = me@laptop

and in /home/git/repositories i have created directory prj1.git with empty git repo.

i can work with gitosis-admin from server and laptop without problems, but when i’m trying to git clone prj1 on my laptop i see

$ git clone git@server:prj1.git
Initialized empty Git repository in /Users/alec/temp/prj1/.git/
fatal: no matching remote head

ok, lets push prj1 from laptop to server:

$ git push origin master:refs/heads/master
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly

Whats wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:59:16+00:00Added an answer on May 12, 2026 at 9:59 am

    Would the following, done on your laptop, solve this issue?
    Instead of a git clone:

      mkdir prj1
      cd prj1
      git init
      touch README
      git add .
      git commit -m "Added blank readme"
      git remote add origin git@server:prj1.git
      git push origin master
    

    ebneter adds in the comment:

    You might mention that the reason this works is that you can’t clone an empty repo.
    (As my users regularly discover…

    And that reminds the OP question:

    … and in /home/git/repositories I have created directory prj1.git with empty git repo

    which is not ideal right there.
    This SO question mentions the issue of cloning an empty repo:

    In other words, don’t attempt to clone the empty repo, but rather after creating it, push to it a simple repo containing one innocuous file. Then it is no longer empty and can be cloned.


    Since then, Chris Johnsen comments:

    Any Git later than 1.6.2

    (so actually since March 2009)

    can “clone” empty repositories.
    (scare quotes because it really just amounts normal initialization plus setting up a remote, and creating a tracking configuration for the presumed, eventual master branch).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully installed and configured gitosis on an Ubuntu server. We're currently just
I have installed Eggdrop on a new Debian server, but it keeps having issues
I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly
I have installed RubyMine on Mac but my development environment for Ruby and Rails
I have installed CodeRush and ReFactor package but i don't see any changes on
I'm switching from SVN to Git with Gitosis installed on a central server for
I have installed gitorious on my local server and when I try to run
I have installed WSS 3.0 sp1 in windows server 2003 and it runs successfully
I removed the gitosis-admin folder, but naturally something is still screwed up when I
I have installed MinGW in Windows Vista, so I can use gcc but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.