How to disable fork on private repo on github

后端 未结 3 2015
执笔经年
执笔经年 2021-01-07 20:07

It was easy on bitbucket. if I dont want my repo to be forked. I can disable it. Only people I have invite can work on repo as long as they have permission on repo.

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 20:31

    I'm not aware of any way to do this in GitHub, and frankly I don't see any value in Bitbucket letting you "disable" forking, either.

    Bitbucket may let you disable the fork button, but anybody who can clone your repository can "fork" it by simply pushing it up to a different remote:

    git clone git@bitbucket.org:alix/some-repo.git
    git remote set-url --push origin git@bitbucket.org:chris/some-repo.git
    git push origin master
    

提交回复
热议问题