1. A system, comprising: a hardware processor configured to: receive a request to change a portion of code; determine a change reference associated with the code and an existing reference associated with the code; indicate to lock a plurality of repositories of a distributed repository with access to the code; request the plurality of repositories to approve the request to change the portion of code; receive a corresponding vote from each repository of the plurality of repositories; determine whether swapping references is approved by a majority of the plurality of repositories based on the corresponding votes; in response to determining that swapping references is approved by the majority of the plurality of repositories: modify the code by swapping the existing reference associated with the code with the change reference associated with the code; and indicate to unlock the plurality of repositories; and a memory coupled to the hardware processor and configured to provide the hardware processor with instructions.