OliverRadini
OliverRadini

Reputation: 6466

Is it possible to prevent users from cloning a branch?

We have a self hosted instance of Gitlab CE, and are wondering whether or not it is possible to prevent users from cloning a given branch.

Having looked into this, my strong suspicion is that it isn't possible. But my questions are:

  1. Does gitlab allow you to control whether branches can be cloned?
  2. Is there any kind of git hosting which allows you to control whether branches can be cloned?

Any help is much appreciated.

Upvotes: 1

Views: 1434

Answers (1)

djuarezg
djuarezg

Reputation: 2541

You cannot protect a branch from "cloning" - you always clone an entire repository.

  • You can make the project private so people don't see your project.
  • You can protect branches from pushing.

Upvotes: 5

Related Questions