Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I prevent the cloning of my github repository?

I'm trying to figure a way to prevent clone from github repository, for example, I have a private repository and some people working in that, in a company computer, each one in your team and authorization levels setted up.

When I set authorization for some user on github, the repository is avaiable on his/her own github account, to see and do what want since is authorized from anywhere.

How can I avoid someone to clone the repository on your own computer? Try to figure out someone is planning to get out the company for some reason, but before that hi/she clone the company repositories to use somewhere else. Since he/she will be unable to make changes on remote after I remove permission, avoiding clone will solve my security concerns.

like image 759
kaahxd Avatar asked Nov 06 '15 19:11

kaahxd


People also ask

Can you see if someone cloned your repo GitHub?

Can the owner of the repo see when someone clones it? No, they cannot.

Can anyone clone a git repo?

You can use Sourcetree, Git from the command line, or any client you like to clone your Git repository. These instructions show you how to clone your repository using Git from the terminal. From the repository, select the Clone button. Copy the clone command (either the SSH format or the HTTPS).


1 Answers

You can't.

You can't configure githubs git server on this way. More exactly, it is an automatized feature of the github, which can be triggered only by an incoming transaction. Not git transaction, but financial transaction. :-)

like image 122
peterh Avatar answered Sep 20 '22 14:09

peterh