SlideShare a Scribd company logo
Git
Caesar Chi-clonn@plurk
Caesar Chi@facebook
Clonn.blogspot.com
Git
簡介
Team work
   you need
version control
Git
分散式架構
Git,linux
同一個工廠誕生
初學?
Github.com
  Social coding
從做中學
開啟自己的github 專案開始
simple Git
Git
基本指令
Git log
凡走過必留下痕跡
Git merge -branch
   將其他branch 整進來
Git pull
= git fetch + git merge
Git commit
Commit 下的好,維護沒煩惱
Git push
  推,就對了
Git diff
 檢視code 差異
Git reset
 還原自上次的push
Git checkout -filepath
      放棄檔案更新
Git checkout –branch
      放棄檔案更新
Git branch
本地branch操作
Git rm
刪除git 的記憶
Git
其他指令
Git rebase –commitid
        重新調整基底
     a-b-c-d master
        
          e-f-g-h feature_branch
Git rebase –commitid
        重新調整基底
     a-b-c-d-i-j-k-l master
              
               e-f-g-h feature_branch
Git cherry-picker
           撿取自己要得
  a-b-c-d-i-j-k-l master
           
            e-f-g-h feature_branch
Git cherry-picker
            撿取自己要得


a-b-c-d-i-j-k-l master
        
          e-f-g-h feature_branch
Git cherry-picker
            撿取自己要得


a-b-c-d-f-h-i-j-k-l master
        
          e-f-g-h feature_branch
Git stash
將部份的code 藏起來
可參考git stash --help
Git stash
Git add –file
Git stash
Git stash list
Git stash pop
Git config
   ~/.gitconfig
alias
[alias]
   st = status
   br = branch
   rb = svn rebase
   ci = commit
   co = checkout
   sub = submodule
遠端branch
git push origin
feature_20111216_caesar_cmstool:refs/heads/feature_test
git fetch origin
git branch --track feature_test origin/feature_test
git checkout feature_test
GRB
https://github.com/webmat/git_remote_branch
http://thinkvitamin.com/code/git-pro-tip-let-grb-handle-
remote-branches-for-you/
Git never end

More Related Content

PDF
Improving your workflow with git
PPTX
Git basics 2
PPTX
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
PPTX
Cool new stuff in JGit and EGit - Eclipse Democamp Munich 2013-06-12
PDF
#5 - Git - Contribuindo com um repositório remoto
PPTX
Git like a Pro (How to use it as it was meant to)
PDF
Git in pills : git stash
Improving your workflow with git
Git basics 2
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
Cool new stuff in JGit and EGit - Eclipse Democamp Munich 2013-06-12
#5 - Git - Contribuindo com um repositório remoto
Git like a Pro (How to use it as it was meant to)
Git in pills : git stash

What's hot (20)

PDF
Git Tricks
PDF
Git essentials
PDF
How to become a Git power user
PDF
Advanced Git
PPTX
Git Flow and JavaScript Coding Style
PDF
Honestly Git Playground 20190221
PPTX
Mastering git - Workflow
PDF
Introduction to GIT
PPTX
SCM Gitlab Advanced
PDF
Git tips by symbols
PDF
Don't fear the rebase
PDF
Git advanced
PDF
Git Tricks — git utilities that make life git easier
PPTX
git - the basics
PPTX
Git missiontomars 2015-03-10
KEY
Git Distributed Version Control System
PPTX
TDC2018SP | Trilha NoSQL - Git muito alem do controle de versao, uma alternat...
PDF
Git flow cheatsheet
PDF
Git Workflow With Gitflow
PDF
Undoing Things in Git
Git Tricks
Git essentials
How to become a Git power user
Advanced Git
Git Flow and JavaScript Coding Style
Honestly Git Playground 20190221
Mastering git - Workflow
Introduction to GIT
SCM Gitlab Advanced
Git tips by symbols
Don't fear the rebase
Git advanced
Git Tricks — git utilities that make life git easier
git - the basics
Git missiontomars 2015-03-10
Git Distributed Version Control System
TDC2018SP | Trilha NoSQL - Git muito alem do controle de versao, uma alternat...
Git flow cheatsheet
Git Workflow With Gitflow
Undoing Things in Git
Ad

Viewers also liked (6)

PDF
html5 & phonegap
PDF
遠端團隊專案建立與管理 remote team management 2016
PDF
Introduce Angular2 & render & firebase flow
PDF
codecept.js introduce - front end test E2E tool introduce
PDF
如何提昇技術力 - 參與技術社群之經驗分享
PDF
Growth Strategies
html5 & phonegap
遠端團隊專案建立與管理 remote team management 2016
Introduce Angular2 & render & firebase flow
codecept.js introduce - front end test E2E tool introduce
如何提昇技術力 - 參與技術社群之經驗分享
Growth Strategies
Ad

Similar to simple Git (20)

PDF
Wokshop de Git
PDF
Git cheat-sheets
KEY
Git Magic: Versioning Files like a Boss
PPTX
PPTX
PDF
Git introduction
PPTX
Introduction To Git Workshop
PDF
How to Really Get Git
PDF
Using git in eclipse by Chris Aniszczyk
PDF
Git Commands Every Developer Should Know?
PDF
Git Started With Git
PDF
Pro git - grasping it conceptually
PDF
Managing e commerce systems codebase with git
PPTX
Git & GitHub 101farwsfrwvnfuvnvjvvv.pptx
KEY
Git Tech Talk
PPT
Git training
PDF
Git workflows automat-it
PDF
git-docker.pdf
PDF
Advanced Git Tutorial
PDF
M.Mozūras - git
Wokshop de Git
Git cheat-sheets
Git Magic: Versioning Files like a Boss
Git introduction
Introduction To Git Workshop
How to Really Get Git
Using git in eclipse by Chris Aniszczyk
Git Commands Every Developer Should Know?
Git Started With Git
Pro git - grasping it conceptually
Managing e commerce systems codebase with git
Git & GitHub 101farwsfrwvnfuvnvjvvv.pptx
Git Tech Talk
Git training
Git workflows automat-it
git-docker.pdf
Advanced Git Tutorial
M.Mozūras - git

More from Caesar Chi (20)

PDF
為何技術老人這樣想那樣做?
PDF
面試AI技術大進化,加速招聘軟體工程師的全套攻略!
PDF
初探工程師升級手冊 2022
PDF
預約及客服 LINE 服務串接大挑戰
PDF
Remote monitoring widget setup and customization
PDF
JS 從 Non-type 到 Type 的愛恨情仇
PDF
LINE@ 2.0 offline to online
PDF
Chatbot 智能溝通策 流程規劃與實做 e-Commerce Chatbot - AI strategy and Chat bot user flow
PDF
PWA and Chatbot - with e-Commerce experience sharing
PDF
Morden F2E Education - Think of Progressive Web Apps
PDF
From devOps to front end Ops, test first
PDF
Docker with Cloud Service GCPUG
PDF
從失敗中學習打造技術團隊
PDF
Docker with Cloud Service
PDF
技術單兵作戰及團隊開發流程差異
PDF
Developer team review of 2014
PDF
Web development, from git flow to github flow
PDF
2014 jsconf China, Sharing
PDF
Node.js x Azure, cli usage, website deployment
PDF
MVC way to introduce Sails.js - node.js framework
為何技術老人這樣想那樣做?
面試AI技術大進化,加速招聘軟體工程師的全套攻略!
初探工程師升級手冊 2022
預約及客服 LINE 服務串接大挑戰
Remote monitoring widget setup and customization
JS 從 Non-type 到 Type 的愛恨情仇
LINE@ 2.0 offline to online
Chatbot 智能溝通策 流程規劃與實做 e-Commerce Chatbot - AI strategy and Chat bot user flow
PWA and Chatbot - with e-Commerce experience sharing
Morden F2E Education - Think of Progressive Web Apps
From devOps to front end Ops, test first
Docker with Cloud Service GCPUG
從失敗中學習打造技術團隊
Docker with Cloud Service
技術單兵作戰及團隊開發流程差異
Developer team review of 2014
Web development, from git flow to github flow
2014 jsconf China, Sharing
Node.js x Azure, cli usage, website deployment
MVC way to introduce Sails.js - node.js framework

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Modernizing your data center with Dell and AMD
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Modernizing your data center with Dell and AMD
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Approach and Philosophy of On baking technology
Understanding_Digital_Forensics_Presentation.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

simple Git