Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The repo access rights on a DVCS is always linked to the all repo, not part of if, mainly because you clone <em>all</em> of it (<a href="https://stackoverflow.com/questions/4929688/how-to-shallow-clone-a-single-branch-in-git/4929819#4929819">shallow clone is hard</a>).</p> <p>That means <a href="https://github.com/sitaramc/gitolite" rel="nofollow noreferrer">gitolite</a> (I won't even mention gitosis which is obsolete) can establish restrictions on:</p> <ul> <li>accessing a all repo</li> <li>writing only certain branches (but you cannot limit read access to certain branch)</li> </ul> <p>But <strong>it cannot prevent a user to access parts of a repo</strong>.</p> <p>However, since <a href="http://sitaramc.github.com/gitolite/master-toc.html" rel="nofollow noreferrer">gitolite v3 or 'g3'</a> (April 17th, 2012), you can, with <a href="http://sitaramc.github.com/gitolite/vref.html" rel="nofollow noreferrer">VREF rules</a>, prevent <a href="http://sitaramc.github.com/gitolite/vref.html#NAME" rel="nofollow noreferrer"><strong>writing (pushing to) certain <em>directories</em></strong></a> (in addition of certain branches).</p> <hr> <p>Original answer (<a href="http://sitaramc.github.com/gitolite/g2/master-toc.html" rel="nofollow noreferrer">gitolite V2 or 'g2'</a>, November 2011)</p> <p>See <a href="http://sitaramc.github.com/gitolite/g2/exbac.html" rel="nofollow noreferrer"><code>gitolite.conf</code> -- by example</a> and <a href="http://sitaramc.github.com/gitolite/g2/rpr_.html" rel="nofollow noreferrer">side note: "R" permissions for refs</a></p> <pre><code>repo gitolite-admin RW+ = sitaram # this is equivalent to: RW+ refs/.* = sitaram </code></pre> <blockquote> <p>Sitaram is the only admin. He can push, create, delete, or rewind any branch or tag in the gitolite-admin repo.</p> </blockquote> <pre><code> R master = wally # MEANINGLESS! WILL NOT DO WHAT YOU THINK IT DOES! </code></pre> <blockquote> <p>This won't work.<br> <strong>You can only restrict "read" access at the repo level, not at the branch level</strong>.<br> This is a git issue, not a gitolite issue. Go bother them, or switch to gerrit.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload