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 7747311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:29:52+00:00 2026-06-01T10:29:52+00:00

I recently git-ified a web project. Following this guide , I set up a

  • 0

I recently git-ified a web project. Following this guide, I set up a bare repo in my home directory /home/mt33 that acts as the hub for the clone sitting in www/. Then I cloned the bare repo (no working tree) to my local machine, make my changes, commit, and push origin master them to the server. The post-update script on the bare repo then takes care to cd to the www/ clone, and pull all changes. This all works great.

I want to add a second developer, but he is unable to clone from the bare repo sitting in my home directory. So I asked the sysadmin to add group-read, group-write and group-execute permissions to my home directory and add the second dev to my group. Consequently, he confirmed that he can SSH to the server and cd into home directory, as well as see the contents of the repo.git directory. Here’s what he sees:

drwxrwxr-x 7 mt33 mt33 4096 2012-03-07 19:10 repo.git

When he tries to clone using

git clone theseconddev@theserver:/home/mt33/repo.git my_directory he gets the error

fatal: '/home/mt33/repo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

At this point I’m not sure what to do… Is the bare repo in my home directory a problem? Any pointers appreciated…

  • 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-01T10:29:53+00:00Added an answer on June 1, 2026 at 10:29 am

    You may need to also add those permissions for the files within /home/mt33/repo.git.

    chmod -R g+rwx /home/mt33/repo.git
    

    (Also make sure to set sharedRepository=true inside the config file to properly preserve the permissions in the future.)

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

Sidebar

Related Questions

I’ve recently installed git and initialized a git repo in my project folder. I
I have a git project that I used for a recently published scientific paper.
I recently set up dev/staging/production environment on OSX Lion. I have a git repo
I'm tracking a project that has recently moved from svn to git. I've got
I have recently been writing git hooks for my project team. I would like
We recently moved from SVN to Git, but there's a single legacy branch that
A SVN repo I use git-svn to track was recently corrupted and a backup
I recently set up a new account with github. I'm following a Rails tutorial
I recently switched to using Git (eGit) from SVN... for my Eclipse Java project
We have recently migrated to Git from SVN. We have setup a bare repository

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.