SlideShare a Scribd company logo
git 初心者攻略
人生不能重來,但git可以...
開始之前...
Q: 怎麼做檔案備份
Git raiders of junior
版本控制
版本控制?
• 儲存進度
• 讀取進度
• 管理不同紀錄
Git raiders of junior
不怕神一般的對手 只怕豬一般的隊友
為什麼要版本控制?
• 程式為什麼不會動?
• 程式為什麼會有錯誤?
為什麼要版本控制?
1. 為什麼變更
2. 什麼時候變更
3. 變更了什麼
4. 知道誰變更
5. 切換/合併不同版本
Git raiders of junior
重點就是
1.出事的時候知道從什麼時候開始又問題,
知道該找誰來罵!!
2.自己的黑鍋自己背!!
開始使用git
安裝
• Sourcetree
– https://www.sourcetreeapp.com/
設定
//設定你的資料(name & email)
$ git config --global user.name “your name"
$ git config --global user.email “your email“
//查看你的git設定
$ git config --list
建立第一個Repository
基礎概念
加到暫存區(add)
提交(commit)
Git raiders of junior
查看狀態&檢視紀錄
分支(branch)
Git raiders of junior
合併分支(merge)
Git raiders of junior
rebase
Git raiders of junior
Git raiders of junior
遠端操作
Git raiders of junior
clone
pull & push
常用指令
基本指令
$ git add
$ git commit
$ git status
$ git log
$ git merge
$ git branch
遠端操作
$ git clone
$ git push
$ git pull
參考資料
1) 連猴子都能懂的Git入門指南 | 貝格樂
(Backlog)
2) 30 天精通 Git 版本控管
3) 一步一步教你用 GitHub + SourceTree 做
版本控制
4) source tree下載與安裝
5) SourceTree 安裝筆記

More Related Content

Similar to Git raiders of junior (20)

PDF
Git Tutorial
Drake Huang
 
PPTX
大家應該都要會的工具 Git 從放棄到會用1-基礎篇
Alan Tsai
 
PDF
幸福快樂的完美結局
Anna Su
 
PDF
Git與source tree 基礎教學
Duncan Chen
 
PPTX
工程師必備第一工具 - Git
Alan Tsai
 
ODP
Git basis - usage
Eason Cao
 
PDF
Git tutorial for windows user (給 Windows user 的 Git 教學)
Cloud Tu
 
PDF
Git 好吃嗎
Szuping Wang
 
ODP
Git 程式碼版本控制軟體介紹
PingLun Liao
 
PPTX
Git & Sourcetree 介紹
Adison wu
 
ODP
Git 教學
Ming-Sian Lin
 
PDF
寫給大家的 Git 教學
littlebtc
 
PPT
Git 超簡單學習懶人包(軟體程式版本控管系統)
flylon
 
PPTX
Git入門介紹
mudream4869
 
PPTX
Mercurial簡介與教學
芳本 林
 
PPTX
Git使用入门
dpf2e
 
PPTX
我的第一個Git版控
Aaron King
 
PDF
Git由超淺入超深
羊 小咩 (lamb-mei)
 
PPTX
20170510 git 懶人包
Chen-Ming Yang
 
PDF
版本控制 使用Git & git hub
維佋 唐
 
Git Tutorial
Drake Huang
 
大家應該都要會的工具 Git 從放棄到會用1-基礎篇
Alan Tsai
 
幸福快樂的完美結局
Anna Su
 
Git與source tree 基礎教學
Duncan Chen
 
工程師必備第一工具 - Git
Alan Tsai
 
Git basis - usage
Eason Cao
 
Git tutorial for windows user (給 Windows user 的 Git 教學)
Cloud Tu
 
Git 好吃嗎
Szuping Wang
 
Git 程式碼版本控制軟體介紹
PingLun Liao
 
Git & Sourcetree 介紹
Adison wu
 
Git 教學
Ming-Sian Lin
 
寫給大家的 Git 教學
littlebtc
 
Git 超簡單學習懶人包(軟體程式版本控管系統)
flylon
 
Git入門介紹
mudream4869
 
Mercurial簡介與教學
芳本 林
 
Git使用入门
dpf2e
 
我的第一個Git版控
Aaron King
 
Git由超淺入超深
羊 小咩 (lamb-mei)
 
20170510 git 懶人包
Chen-Ming Yang
 
版本控制 使用Git & git hub
維佋 唐
 

Git raiders of junior