Skip to Content
自造手冊:新工業革命實務指南
book

自造手冊:新工業革命實務指南

by Paolo Aliverti, Andrea Maietta
March 2017
Intermediate to advanced
232 pages
4h 44m
Chinese
GoTop Information, Inc.
Content preview from 自造手冊:新工業革命實務指南
第 10 章 管理專案資料
74
工作開始前忘了先同步資料庫,也不是
太嚴重。不過產生衝突的風險就會增加,
因為有多個人在同一份檔案中編輯同一
個東西。如果發生了這個情況,GitHub
會保留兩個版本,讓您選擇要留哪一個。
所以…別忘了要常常同步哦!
不是只有樹才有分支
在專案的生命週期裡,可能會出現必須在
幾個替代性開發路徑中作選擇的情況。例
如,您正在建造有兩款機型的摩托車,
一個吃汽油,一個靠電池。兩款機型的
整體設計,例如車體、坐墊、剎車、輪
胎等等完全一樣。唯一的不同只有動力
來 源。 藉 由 Git 的
分支
(
branch
) 功 能
能夠幫助您管理兩個不同的版本。
Git 的分支功能是用在管理開發專案中獨
立的多個替代性版本。預設的分支名稱
為
master
—消耗汽油的摩托車車體—如
圖 10-19
。
圖 10-19
現在位於哪個分支呢?
您 必 須 先 建 立 數 個 檔 案 來 代 表 摩 托 車
的 不 同 部 分。 在
圖 10-20
中 可 以 看 到
SourceTree 已偵測到您新增了幾個檔案。
未追蹤的檔案
圖 10-20
新增檔案至 Git
跟之 前 一 樣, 您 必 須先 新 增(Add) 再
提 交(Commit), 接 著, 選 擇 Push 和
GitHub 同步,讓您的合作同伴看見專案
的最新版本。現在,這個摩托車屬於“標
準”版本,您可以開始處理動力來源部
分的工作了。不要複製專案資料夾,新
增分支:點擊 Branch 鍵(
圖 10-21
),輸
入名稱,然後點擊 Create Branch 鍵。
圖 10-2 ...
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

優雅的SciPy|Python科學研究的美學

優雅的SciPy|Python科學研究的美學

Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
Presto实战

Presto实战

Matt Fuller, Manfred Moser, Martin Traverso

Publisher Resources

ISBN: 9789864763238