SlideShare a Scribd company logo
觀念與實作
目錄
 什麼是 Git ?
 本地環境設定
 基本操作
 設定 Gitlab 遠端儲存庫
 Gitlab 基本操作
 專案協作技巧與規範
 衝突解決與版本發佈
 其他
什麼是 Git ?
調整畫面 UI
修改資料格式
刪除遺留程式
開發新功能
調整畫面 UI
修改資料格式
刪除遺留程式
開發新功能
版本一
版本二
版本三
版本四
版本四
版本三
調整畫面 UI
修改資料格式
刪除遺留程式
開發新功能
反悔回到上一版
調整畫面 UI
修改資料格式
刪除遺留程式
開發新功能
取消修改
但是想保留怎麼辦?
傳統單線版本控制 Git 多分支版本控制
調整畫面 UI
刪除遺留程式
開發新功能
修改資料格式
調整畫面 UI
刪除遺留程式
開發新功能
修改資料格式
取消修改
反悔找回
調整畫面 UI
刪除遺留程式
開發新功能
修改資料格式
取消修改
反悔找回
調整畫面 UI
刪除遺留程式
開發新功能
修改資料格式
獨立版本
獨立版本
獨立版本
獨立版本
Git 多分支版本控制
 功能分割
 多人協作
 穩定開發
本地環境設定
視覺化版本控制工具
下載連結
將專案 git 連結至 Sourcetree
• Create:建立新 git 管理
• Add:連結已建立 git 的本地專案
• Clone:將遠端專案複製到本地
已有專案 ≠ 已有 git
本地 Git 操作流程
Add
加入修改的檔案
index.php
ui.html
…
Commit
提交變更到 git
Commit 提交訊息規範
Git Commit Message 替專案引入規範與範例
Branch
新建分支
Merge
合併分支
Branch 分支規範
工作流程分支
• Development (dev)
• QA/Test (test)
• Master (master)
Git Branch Naming Convention - DEV Community
暫時性分支
• Feature
• Bug Fix
• Hot Fix
• Experimental
• Build
• Release
• Merging
完整 Git 操作流程
遠端儲存庫管理工具
• 申請帳號
• 建立專案(新專案 / 連結本地專案)
Iterate faster, innovate together | GitLab
本地分支 遠端分支
在同一個 Commit 代表本地和遠端已經同步
origin/dev
dev
遠端有更新
origin/dev
dev
本地有更新
尚未同步
Push
將本地同步到遠端
Pull
將遠端同步到本地
origin/dev dev
origin/dev
dev
origin/dev
dev origin/dev
dev

More Related Content

PDF
寫給大家的 Git 教學
PPTX
H3 Platform CXL Solution_Memory Fabric Forum.pptx
PPTX
Sistema operacional linux
PPTX
GDSC - Introduction to GIT
PDF
Embedded Linux Kernel - Build your custom kernel
PDF
Kotlin/Native 「使ってみた」の一歩先へ
PDF
A practical guide to buildroot
PPT
Unix Shell Scripting Basics
寫給大家的 Git 教學
H3 Platform CXL Solution_Memory Fabric Forum.pptx
Sistema operacional linux
GDSC - Introduction to GIT
Embedded Linux Kernel - Build your custom kernel
Kotlin/Native 「使ってみた」の一歩先へ
A practical guide to buildroot
Unix Shell Scripting Basics

What's hot (20)

PPTX
Open source software and os
PDF
Making a Headless Android Device
PDF
PDF
Python與Ardinio整合應用
PPTX
Introduction to Linux basic
PDF
History of linux
PDF
FreeBSD Capsicum
PPTX
OpenStackで始めるクラウド環境構築入門 Havana&DevStack編
PDF
Lisa12 methodologies
PDF
今からはじめる! Linuxコマンド入門
PDF
KVM+cgroup
PDF
3種類のTEE比較(Intel SGX, ARM TrustZone, RISC-V Keystone)
PPTX
مكونات الكمبيوتر
PDF
ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編
PDF
きつねさんでもわかるLlvm読書会 第2回
PPTX
PLAYSTATION OPERATING SYSTEM
PPTX
Windows OS Architecture in Summery
PDF
[若渴]Study on Side Channel Attacks and Countermeasures
PPTX
Apresentação Windows Server 2012
PDF
High performance computing - building blocks, production & perspective
Open source software and os
Making a Headless Android Device
Python與Ardinio整合應用
Introduction to Linux basic
History of linux
FreeBSD Capsicum
OpenStackで始めるクラウド環境構築入門 Havana&DevStack編
Lisa12 methodologies
今からはじめる! Linuxコマンド入門
KVM+cgroup
3種類のTEE比較(Intel SGX, ARM TrustZone, RISC-V Keystone)
مكونات الكمبيوتر
ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編
きつねさんでもわかるLlvm読書会 第2回
PLAYSTATION OPERATING SYSTEM
Windows OS Architecture in Summery
[若渴]Study on Side Channel Attacks and Countermeasures
Apresentação Windows Server 2012
High performance computing - building blocks, production & perspective
Ad

Similar to Gitlab教學 (20)

PDF
Git in a nutshell
PPTX
Git 入門與實作
PPTX
Git基礎介紹
PDF
Learning to Use Git | WeiYuan
PDF
Introduction to git
PDF
版本控制 使用Git & git hub
PPTX
Git and git hub
PPTX
Git introduction
PDF
初心者 Git 上手攻略
PDF
為自己學 Git
PDF
Git Tutorial
PPTX
Git & git hub v1.2
PPT
Git 超簡單學習懶人包(軟體程式版本控管系統)
PPTX
大家應該都要會的工具 Git 從放棄到會用1-基礎篇
PPTX
Git初步入門
PDF
Git 好吃嗎
PPTX
工程師必備第一工具 - Git
PDF
Git and Github basic with SourceTree
PDF
Git 簡介(古時候的簡報備份)
PPTX
Git & Sourcetree 介紹
Git in a nutshell
Git 入門與實作
Git基礎介紹
Learning to Use Git | WeiYuan
Introduction to git
版本控制 使用Git & git hub
Git and git hub
Git introduction
初心者 Git 上手攻略
為自己學 Git
Git Tutorial
Git & git hub v1.2
Git 超簡單學習懶人包(軟體程式版本控管系統)
大家應該都要會的工具 Git 從放棄到會用1-基礎篇
Git初步入門
Git 好吃嗎
工程師必備第一工具 - Git
Git and Github basic with SourceTree
Git 簡介(古時候的簡報備份)
Git & Sourcetree 介紹
Ad

Gitlab教學

Editor's Notes

  • #16: 視覺操作為主,指令操作為輔