仓库 (版本控制)

仓库英語:[1]亦称资源库资源库版本库代码库存放库,在版本控制系统中是指在磁盘存储上的数据结构,其中包含了文件目录以及元数据。仓库可能为分布式(如Git)或集中式(如Subversion)。[2]分布式的仓库可以复制到每个用户的本地;集中式的仓库只能保存在服务器上。[3]

仓库中包含的元数据一般有:

  • 仓库中文件变化的历史记录。[4]
  • 提交对象的集合。
  • 提交对象的引用,称为heads。

相關條目

参考文献

  1. . [2012-04-20]. (原始内容存档于2019-05-02).
  2. Ben Collins-Sussman; Brian W. Fitzpatrick; C. Michael Pilato. . . O'Reilly. 2011 [2017-05-22]. (原始内容存档于2020-08-07).
  3. . Stack Overflow. [15 November 2014]. (原始内容存档于2020-08-20).
  4. . Git SCM. [2017-05-22]. (原始内容存档于2020-12-08).
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.