Is there a way to lock individual files or directories on fork when using git?

后端 未结 8 1372
孤独总比滥情好
孤独总比滥情好 2020-11-30 02:47

We are a team of 60+ developers working on the same product and are moving from SVN to Git and GitHub. We have a process in SVN where in individual files are locked and when

相关标签:
8条回答
  • 2020-11-30 03:30

    this is possible. git-lfs 2.0 introduces the ability to lock files: see these links: https://github.com/git-lfs/git-lfs/wiki/File-Locking. Support for this feature is available starting from TFS 2017.2: https://docs.microsoft.com/en-us/vsts/release-notes/.

    0 讨论(0)
  • 2020-11-30 03:30

    Not exactly locking, but Github has introduced a concept called "Code Owners". Allows you to restrict part of your codebase to only allow commits after review by the code owners

    0 讨论(0)
提交回复
热议问题