Is there a way to lock a branch in GIT
Posted
by Senthil A Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Senthil A Kumar
Published on 2010-03-18T16:02:43Z
Indexed on
2010/03/18
16:11 UTC
Read the original article
Hit count: 836
git
|git-branching
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.
Is there a way to lock a specific branch in GIT?
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?
© Stack Overflow or respective owner