Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
186
9
持续集成:创建构建管道的第一步
无须含有工作目录下的所有变更。这也使得你可以压缩合并多次提交,即使你已经在本
地多次提交了大量的变更。如果要将变更发布到正式项目,你需要将本地的
master
分支
“推送”到中央仓库的
master
分支。在这个过程中,可能其他开发人员会先一步推送了
他的提交,从而与你要推送的内容产生代码冲突。这时,
Git
会提示一条表示存在冲突
的信息,然后你需要通过
git pull
命令,将其他人员提交的变更先拉取到本地,然后开
始合并或者变基的工作。
基于功能分支的开发
功能分支工作流
背后的核心思想是,所有的功能都应该在专用的分支上开发,而不是在
master
分支上。这样做使得多个开发人员可以轻松地同时开发多个功能,而不需要干扰
主代码库。这也意味着主分支永远不会包含不完整的代码,有助于持续集成。功能分支
开发的另一个好处是可以使用
PR
Pull Request
),从而让大家形成对某个分支的讨论。
在功能分支被合并到主分支之前,
PR
为团队中的其他开发人员提供了一次投票表决的机
会。
功能分支工作流使用一个中心化的仓库,其中
master
分支表示正式的项目历史记录。每
次开发新功能的时候,我们都会先创建一个新的分支,用一个描述性的名称命名,例如
cart-service
paypal-checkout-integration
或者
issue-
#
452
。这样做主要是为每个分支指
定一个明确的目标,方便以后的分支审查和清理工作。从技术角度来讲,
Git
master
分支和功能分支之间没有任何区别, ...
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

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425