I have some automation occurring that requires the creation of extra branches, and I don't want the client to fetch these remote branches to his/her local repo. Is this possible with the use of a server side hook?
Asked
Active
Viewed 44 times
2
-
I can't find any suitable hook of the kind *pre-fetch* but I'm not an expert on Git. Would use [non-branch ref](https://stackoverflow.com/questions/25169440/remove-hide-git-branches-without-deleting-commit-histories) be possible? – Margaret Bloom Mar 08 '16 at 09:59
1 Answers
2
Neither git
has a pre-fetch
hook
nor it supports branch level permissions.
However you could use tools like Gitolite to manage branch level permissions and prevent internal branches from being pulled.

Sevle
- 3,109
- 2
- 19
- 31

Royal Pinto
- 2,869
- 8
- 27
- 39