Skip to content
English
  • There are no suggestions because the search field is empty.

Can I lock a file so no one else can check it out?

Since Git is a distributed version control system, there is no way to prevent someone from obtaining a specific file within a repository

Unlike centralized version control systems, Git is distributed. This means that all users who clone a repository have access to all of the files within. So, there is no way to explicitly block a user from obtaining a specific file in a repo, but you can prevent changes to specific files using Branch Protections. You can read more about Branch Protections in our Documentation.