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

  • SEARCH
  • Home
  • 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 8668603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:15:16+00:00 2026-06-12T18:15:16+00:00

I am trying to setup a cgit instance from which you can push or

  • 0

I am trying to setup a cgit instance from which you can push or pull over http. However, i am able to browse my repos over http via cgit, but when i try to push to this repo, i get an error:

Fatal, /info/refs not valid, is this a git repository?

This path exists on the server, and this is an empty file. I have created a post-update hook which executes git update-server-info automatically (the post-update.example from the repo).
But when i try to view the /info/refs file via http, cgit has an announcement, that this is an empty repository.

What can i do to get access to this file via http, so i can push or pull with the urls that cgit provides to me?

I have my repos on a shared hosting provider, so i have no access to the apache.conf but only to the .htaccess files…

  • 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-06-12T18:15:17+00:00Added an answer on June 12, 2026 at 6:15 pm

    As far as I can tell, cgit doesn’t enable pushing to Git repositories (from looking through their feature list).

    You’ll likely need to setup something like git-http-backend to be able to push. The git-http-backend manpage has example configurations for Apache 2.x for anonymous read with authenticated write, and for authenticated read and write.

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

Sidebar

Related Questions

I'm trying to setup the application server part of C2DM push messaging using this
Trying to setup my laptop to edit and run my C# application which called
Been trying to setup my Facebook app which I want to use for Logins
Trying to setup SSL on jetty 7.2.2 using these instructions: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL stuck on 3b:
Im trying to setup an NServiceBus PubSub example which is hosted inside a set
I'm trying to setup a loop in Wordpress that will show all posts from
Trying to setup a Cron task that gets a file via FTP however seems
Im trying to setup so that when you hover over class .object1 -> in
I'm trying to setup the Widget plugin by wiredesignz at http://codeigniter.com/forums/viewthread/109584/P20 but I keep
Trying to setup replication from gerrit to my github repo. Getting this stacktrace: [2011-09-20

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.