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持续交付
Git
入门
181
2nd Edition
(O
Reilly)
Git
的官方文档也非常精彩(
https://git-scm.com/doc
),
供了完整的参考资料,以及
Scott Chacon
Ben Straub
编写的
Pro Git
(Apress)
在线版本。
核心的
Git CLI
命令
你首先需要在本地开发机器上安装
Git
,无论是通过包管理器,还是从
Git
网站(
https://
git-scm.com/book/en/v2/Getting-Started-Installing-Git
)下载二进制安装文件,均可以安
Git
初始化并使用一个
repo
你可以在一个新的(或者当前)目录下初始化一个新的
Git repo
,如下所示
$ git init
这会在当前目录下创建一个隐藏的目录,包含该
repo
的所有数据。你还可以添加一
.gitignore
文件,指定
Git
忽略或者不跟踪哪些文件的变更。
不要含有敏感文件或者本地配置
即使是私有的代码库,也不要在
Git
中提交数据库的访问密码、云平台的开发
秘钥等敏感信息,这一点至关重要。如果
repo
被公开或者非法人员获得了
repo
的访问权限,它会成为一个非常危险的安全漏洞。另一件重要的事情是,不要
在仓库中提交你的个人本地配置文件,包括
IDE
配置文件。因为你个人的文件
系统路径(以及其他信息)可能与其他开发人员的不同,从而导致其他人在提
交代码时遇到合并冲突。
示例
9-1
演示了一个
Java
项目的
.gitignore
文件。该文件通常用来避免跟踪无效的
Java ...
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