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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:03:38+00:00 2026-05-17T17:03:38+00:00

I want to deploy git for my organisation. I want users to have no

  • 0

I want to deploy git for my organisation. I want users to have no access to the server and to make commits only to the repository.
However I want the repository to be a real file system that I can use with an apache virtual host.
What I have done is the following:

cd /home/vhosts
git init --shared {projectname}
git config receive.denyCurrentBranch ignore

I then want to run git reset --hard after every push back to the main repository.

Is this a good idea? Should I have a second repository that does a git pull instead of a git reset --hard… which is heavier? Can I set this up to be a hook??

Thanks.

  • 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-17T17:03:39+00:00Added an answer on May 17, 2026 at 5:03 pm

    I have the setup you describe with a few modifications. Joe Maller has an excellent write-up that I used as a base for my configuration. A web-focused Git workflow

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

Sidebar

Related Questions

I have a remote git repository setup for centralized development within my team. However,
I have one git repository and I want to have 2 heroku apps from
I want to deploy a local application to a production server with Capistrano. However
I want to deploy 2 Symfony2 projects onto an EC2 server. In addition I
I want to deploy an application with a license attached. However, I want to
I want to deploy my Symfony2 project into my server and capifony but I
I'm using git-svn to use git locally and deploy a client's svn repo. However,
Is is possible to have a git repository ( clonable and pushable) be itself
I want to deploy a Website which i have created using Microsoft Visual Studio
We are using Hudson with git. We have a build/test server which compiles our

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.