title: Is there a way to lock a branch in GIT
body: <p>I have an idea of locking a repository from users pushing files into it by having a lock script in the GIT update hook since the push can only recognize the userid as arguments and not the branches. So i can lock the entire repo which is just locking a directory.</p>
  
  <p>Is there a way to lock a specific branch in GIT?</p>
  
  <p>Or is there a way an Update Hook can identify from which branch the user is pushing and to which branch the code is pushed?</p>