Skip to Content
可编程网络自动化
book

可编程网络自动化

by Jason Edelman, Scott S. Lowe, Matt Oswalt
January 2023
Intermediate to advanced
458 pages
14h 16m
Chinese
Posts & Telecom Press
Content preview from 可编程网络自动化
234
8
在这些用例中,源代码控制负责跟踪文件(网络配置、文档和软件源代码)。我们所说的
跟踪
文件,是指源代码控制工具保存着文件记录、文件随时间发生的变更以及谁对文件做
了改动。如果对被跟踪的文件所做的某处改动出现了问题,那么可以恢复或回滚到该文件
的先前版本,撤销改变并返回到已知的良好状态。在某些情况下(取决于所使用的工具),
源代码控制工具可以让你更方便地与同事展开分布式协作。
8.2
 源代码控制的好处
上一节间接地介绍了源代码控制工具的一些好处,下面我们从中挑选出几个具体之处来
谈谈。
8.2.1
 跟踪变更
我们可以跟踪源代码控制工具所保存的文件变更。由于文件在任意时刻的状态都能够被查
看到,因此你可以相对容易地了解到究竟发生了
什么
变更。这一优点往往会被人忽视。当
你在处理冗长的网络配置文件时,如果能够
准确
地看到从一个版本到下一个版本的变化,
岂不是很有帮助?此外,大多数源代码控制工具还能添加与变更相关的元数据,比如为什
么要做出变更,或是参考某个议题(
issue
)或故障工单
trouble ticket
)。这种附加的元数
据在排除故障时也非常有用。
8.2.2
 可审计性
源代码控制不仅能跟踪变更,还能跟踪是谁做出的变更。每一处变更以及变更人都会被记
录下来。在团队环境中,多个团队成员可能共同管理网络配置或服务器配置文件,因此这
一点会显得尤其有用。你再也不用追问“这是谁改动的?”源代码控制工具已经将其记录
在案了。
8.2.3
 流程和工作流
源代码控制工具还可以帮助你和你的组织推行健康的流程和工作流。第 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787115606181