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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:59:18+00:00 2026-06-04T06:59:18+00:00

I have a few contributors in my github project. I want to allow only

  • 0

I have a few contributors in my github project. I want to allow only one of them to “push” to master. And this guy is not me (the owner of the repository). Is it possible to do?

  • 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-04T06:59:18+00:00Added an answer on June 4, 2026 at 6:59 am

    Back then, when this question was posted, GitHub didn’t allow you to specify access privileges on a branch level. You can only do it on a repository level. So what you are requesting wasn’t possible.

    If you want to work around this limitation, I personally see two options:

    • you could use some kind of commit hooks, etc. to at least inform someone that something wrong happened
    • If you really need this tight control, you could use two repositories, one only holding your “master” branch. You would then need to make sure that only your “guy” gets write access to the master repository

    I think it is easier to solve that with some organisation. In my team, we never push anything directly to master, but instead always create pull requests. That ensures that at least someone takes a look before code gets merged and you could also define a policy that only your “guy” is allowed to merge pull requests.

    Update

    GitHub now announced that they will roll-out a new feature called protected branches. This feature has been present in other git distributions like Atlassian Stash for years. It will allow you to protect some branches from pushes. However, it still doesn’t allow complete ACL-based protection of individual branches. So you might want to check this feature out in case you don’t want to rely on an organizational solution as outline above.

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

Sidebar

Related Questions

I have few nested DIVs at page. I want to add event only for
I have few Vaadin tabs one of them is displaying an table and some
i have few variables like this: self.lamp_1 self.lamp_2 self.lamp_3 self.lamp_4 and now i want
I have few tabs with same form inside of them, only difference is location
I have few question in this regard When you create an internet page, does
I have few Question for which I am not able to get a proper
I have few questions, I want to show the alert window on my Update
I have few jar files which I am not getting from any repositories.I have
I have few 'so' files that I need to load in maven java project
I have few values existing in data base,i need to update them but,i am

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.