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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:07:45+00:00 2026-06-04T10:07:45+00:00

I am setting up GIT repos for my companies development teams, and I seem

  • 0

I am setting up GIT repos for my companies development teams, and I seem to be having an interesting issue.

Often times it arises that multiple people will have to work on the same branch, so when a branch is created and pushed to stage the other devs pull the branch into their local repos and begin working on the code. However the branch on our staging server in .git/logs/refs/heads has the permissions set for both user and group to the user that pushed the branch to our staging environment.

Is there a way to change this default behavior in GIT? We have a user group setup and when we manually change the group permissions on the branches we are able to push, but I’d rather not have a cron job running changing the permissions all the time.

In the image here you can see two repos that have had the permissions manually changed, and one that has just been pushed.

List of GIT ranches and permissions

  • 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-04T10:07:50+00:00Added an answer on June 4, 2026 at 10:07 am

    That is caused by the credentials of the process that creates new files, wether they are in the git repository or in the working copy. And the possible credentials may be taken from the SSH session if push is over SSH, by the git server process if pushing over the custom git protocol, and so on.

    You can’t change the owner of a file unless you are root. But you can enforce the group of newly created files by using the SGID bit on directories.

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

Sidebar

Related Questions

I am having problems setting up Git with Github. I am following the instruction
I'm having trouble setting up Teamcity and Git. I have a git repo checked
In my dev team, we have multiple projects spanned across several git repos. Those
In my dev team, we have multiple projects spanned across several git repos. Those
I have followed the following instructions in setting a git repository locally in one
Setting up new git installations. On one Windows laptop, I'm running (under cygwin): git
We have 2 git repos, one of which we expose to a third party
I am setting up a Git repository. I know you can add repositories using
I'm new to git so please feel free to RTFM me... I have multiple
I'm having problems getting hudson to checkout my git repo and merge into master.

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.