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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:31:05+00:00 2026-05-23T17:31:05+00:00

Right, after much struggle I finally managed to get a sort of shared folder

  • 0

Right, after much struggle I finally managed to get a sort of shared folder among my all workmates where we can make a common git repo.

Googlin’ on how to make that work, apparently the only thing I need is to set a magic flag git config --bool core.bare true and everyone is able to happily push and pull having set the remote as file:///z/path/to/that/folder/.

Briliant. But I want more.

There are lots of people who will have access to our files, but do not git then, if you know what I mean 🙂

Now what I noticed is that after setting the repo as bare the working tree is not updated anymore (well… I guess that’s exactly the point of setting it bare). What I wish though, is that the working tree always reflected the HEAD of the master branch.

Even further, we have actually worked the permissions in a way that the “gitless” people won’t be able to edit the working tree (provided that we manage to make it work the way described), but it would be great if any changes in the master:HEAD instantly overwrote whatever was changed in the working tree. i.e. do not bother generating conflicts and merges.

Are there any other flags that would make my gits come true? 🙂

thanks!

f.

  • 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-23T17:31:06+00:00Added an answer on May 23, 2026 at 5:31 pm

    I’d leave the working directory of the master repo alone, and set up a non-bare repository to host the public working directory.

    You want to look at git help hooks, and set up a post-merge hook in the master repo to tell the public working directory repository to pull changes.

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

Sidebar

Related Questions

After much fiddling, I've managed to install the right ODBC driver and have successfully
I have a working folder. I use Commit by right-clicking on it after my
Isn't there a way where I can refresh the page right after a database
Calling TextView.setTextSize() is working abnormally. Right after the call to setTextSize if we get
VS2008 shuts down right after converting any VS2005 solution. The solution icon is changed
I want to delete an DOM element right after fading out. What I did
I installed my .NET windows service and right after installing I noticed mscorsvw.exe maxing
Right now I'm using a JTable for what I'm doing. After looking through the
I have a ContextMenu that is displayed after a user right clicks on a
How can I launch an application with administrator rights after I have completed an

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.