SlideShare a Scribd company logo
Git CLI
Tutorial
Chern-Han (Henry) Ou
Outline
 Getting started
 Create repository
 Clone repository
 tryGit challenge
Getting started
 https://git-scm.com/
 git --version
Configure Git
 git config --global user.name “Henry Ou”
 git config --global user.email
“hou@splunk.com”
 https://confluence.splunk.com/display/PR
OD/Welcome+to+Git#WelcometoGit-
Your.gitconfigfile
Create repository
 https://git.splunk.com/profile
tryGit challenge
 https://try.github.io/levels/1/challenges/1
Staged
git commit -a
File status lifecycle
Local and remote repository
Clone repository
 HTTPS:
git clone
https://<username>@git.splunk.com/scm/
splcore/qa.git
 SSH:
git clone
ssh://git@git.splunk.com:7999/splcore/qa.
git
Syncing remote branch
 git branch -r
 git checkout temp/dash
 git fetch
Iron Rules
 Do not commit large files
 Do not modify published history
References
 http://git-scm.com/doc
 https://confluence.splunk.com/display/PR
OD/Welcome+to+Git
 https://try.github.io/levels/1/challenges/1
 http://backlogtool.com/git-guide/tw/
Authentications
 HTTPS (by default)
 SSH
https://confluence.atlassian.com/display/
STASH/Creating+SSH+keys
 git commit --amend --reset-author
Personal configurations
 Hookup with sublime
 [core]
editor = subl -n -w
 Mergetool
 Sourcetree
 P4Merge
 https://gist.github.com/tony4d/3454372

More Related Content

What's hot

Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Youngbin Han
 
Git training
Git trainingGit training
Git training
eric7master
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
Brian K. Vagnini
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
Mahmoud Said
 
Git and github introduction
Git and github introductionGit and github introduction
Git and github introduction
John(Qiang) Zhang
 
Introducing Git to your FTP workflow
Introducing Git to your FTP workflow Introducing Git to your FTP workflow
Introducing Git to your FTP workflow
Roman Rus
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
Mohammad Imam Hossain
 
CraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to gitCraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to git
craftworkz
 
Git 101 for_tarad_dev
Git 101 for_tarad_devGit 101 for_tarad_dev
Git 101 for_tarad_dev
Somkiat Puisungnoen
 
Git learn from scratch
Git learn from scratchGit learn from scratch
Git learn from scratch
Mir Arif Hasan
 
GIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control SystemGIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control System
Tommaso Visconti
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
Jim Yeh
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
Workshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughsWorkshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughs
David Lawrence
 
Introduction to GIT
Introduction to GITIntroduction to GIT
Introduction to GIT
Piotr Benetkiewicz
 
Gitosis on Mac OS X Server
Gitosis on Mac OS X ServerGitosis on Mac OS X Server
Gitosis on Mac OS X Server
Yasuhiro Asaka
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexy
Ailsa126
 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
Git basics
Git basicsGit basics
Git basics
Amit Sawhney
 
Basic Git Tutorial
Basic Git TutorialBasic Git Tutorial
Basic Git Tutorial
Vicente Bolea
 

What's hot (20)

Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
Git&GitHub 를 이용한 버전관리와 협업 - 4.협업과 지속적 통합
 
Git training
Git trainingGit training
Git training
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
 
Git and github introduction
Git and github introductionGit and github introduction
Git and github introduction
 
Introducing Git to your FTP workflow
Introducing Git to your FTP workflow Introducing Git to your FTP workflow
Introducing Git to your FTP workflow
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
CraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to gitCraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to git
 
Git 101 for_tarad_dev
Git 101 for_tarad_devGit 101 for_tarad_dev
Git 101 for_tarad_dev
 
Git learn from scratch
Git learn from scratchGit learn from scratch
Git learn from scratch
 
GIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control SystemGIT: Content-addressable filesystem and Version Control System
GIT: Content-addressable filesystem and Version Control System
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
Workshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughsWorkshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughs
 
Introduction to GIT
Introduction to GITIntroduction to GIT
Introduction to GIT
 
Gitosis on Mac OS X Server
Gitosis on Mac OS X ServerGitosis on Mac OS X Server
Gitosis on Mac OS X Server
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexy
 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
 
Git basics
Git basicsGit basics
Git basics
 
Basic Git Tutorial
Basic Git TutorialBasic Git Tutorial
Basic Git Tutorial
 

Viewers also liked

Trello, git, gitlab, gitlab-ci
Trello, git, gitlab, gitlab-ciTrello, git, gitlab, gitlab-ci
Trello, git, gitlab, gitlab-ci
Zhann_
 
Lesson 7 9 congruence
Lesson 7 9 congruenceLesson 7 9 congruence
Lesson 7 9 congruence
mlabuski
 
Numero uno (IC) Award
Numero uno (IC) AwardNumero uno (IC) Award
Numero uno (IC) Award
Rajesh Charania
 
Culinary Portfolio
Culinary PortfolioCulinary Portfolio
Culinary Portfolio
lejt09
 
Iram 3517 2contmant_y_recarga
Iram 3517 2contmant_y_recargaIram 3517 2contmant_y_recarga
Iram 3517 2contmant_y_recarga
Miguel Angel Gallardo Soruco
 
Giants Wizards and Robots - Building all camp games at summer camp
Giants Wizards and Robots  -  Building all camp games at summer campGiants Wizards and Robots  -  Building all camp games at summer camp
Giants Wizards and Robots - Building all camp games at summer camp
campingcoasttocoast
 

Viewers also liked (6)

Trello, git, gitlab, gitlab-ci
Trello, git, gitlab, gitlab-ciTrello, git, gitlab, gitlab-ci
Trello, git, gitlab, gitlab-ci
 
Lesson 7 9 congruence
Lesson 7 9 congruenceLesson 7 9 congruence
Lesson 7 9 congruence
 
Numero uno (IC) Award
Numero uno (IC) AwardNumero uno (IC) Award
Numero uno (IC) Award
 
Culinary Portfolio
Culinary PortfolioCulinary Portfolio
Culinary Portfolio
 
Iram 3517 2contmant_y_recarga
Iram 3517 2contmant_y_recargaIram 3517 2contmant_y_recarga
Iram 3517 2contmant_y_recarga
 
Giants Wizards and Robots - Building all camp games at summer camp
Giants Wizards and Robots  -  Building all camp games at summer campGiants Wizards and Robots  -  Building all camp games at summer camp
Giants Wizards and Robots - Building all camp games at summer camp
 

Similar to Git cli

Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
Behzad Altaf
 
Git101
Git101Git101
Git101
Jason Noble
 
Git Workshop : Git On The Server
Git Workshop : Git On The ServerGit Workshop : Git On The Server
Git Workshop : Git On The Server
Wildan Maulana
 
GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSource
Forest Mars
 
Git & G
Git & GGit & G
Git & G
SangJung Woo
 
Git, Beginner to Advanced Survey
Git, Beginner to Advanced SurveyGit, Beginner to Advanced Survey
Git, Beginner to Advanced Survey
Rafal Rusin
 
Git, Jenkins & Chuck
Git, Jenkins & ChuckGit, Jenkins & Chuck
Git, Jenkins & Chuck
Juraj Michálek
 
Collaboration With Git and GitHub
Collaboration With Git and GitHubCollaboration With Git and GitHub
Collaboration With Git and GitHub
Alec Clews
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHub
SangJung Woo
 
390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
Nguyen Van Hung
 
Git and github fundamental
Git and github fundamentalGit and github fundamental
Git and github fundamental
Rajesh Kumar
 
14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx
GDSCGHRIETNagpur
 
Version Control with Git & GitHub
Version Control with Git & GitHubVersion Control with Git & GitHub
Version Control with Git & GitHub
Piet Cordemans
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
TingYen Lee
 
Deep dark-side of git: How git works internally
Deep dark-side of git: How git works internallyDeep dark-side of git: How git works internally
Deep dark-side of git: How git works internally
SeongJae Park
 
Git Heaven with Wakanda
Git Heaven with WakandaGit Heaven with Wakanda
Git Heaven with Wakanda
Juergen Fesslmeier
 
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
Ashok Kumar
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
KeerthanaJ32
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsGit Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basics
Chris Bohatka
 
Git training
Git trainingGit training
Git training
Jérémy Gobet
 

Similar to Git cli (20)

Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git101
Git101Git101
Git101
 
Git Workshop : Git On The Server
Git Workshop : Git On The ServerGit Workshop : Git On The Server
Git Workshop : Git On The Server
 
GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSource
 
Git & G
Git & GGit & G
Git & G
 
Git, Beginner to Advanced Survey
Git, Beginner to Advanced SurveyGit, Beginner to Advanced Survey
Git, Beginner to Advanced Survey
 
Git, Jenkins & Chuck
Git, Jenkins & ChuckGit, Jenkins & Chuck
Git, Jenkins & Chuck
 
Collaboration With Git and GitHub
Collaboration With Git and GitHubCollaboration With Git and GitHub
Collaboration With Git and GitHub
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHub
 
390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
 
Git and github fundamental
Git and github fundamentalGit and github fundamental
Git and github fundamental
 
14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx
 
Version Control with Git & GitHub
Version Control with Git & GitHubVersion Control with Git & GitHub
Version Control with Git & GitHub
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
 
Deep dark-side of git: How git works internally
Deep dark-side of git: How git works internallyDeep dark-side of git: How git works internally
Deep dark-side of git: How git works internally
 
Git Heaven with Wakanda
Git Heaven with WakandaGit Heaven with Wakanda
Git Heaven with Wakanda
 
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsGit Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basics
 
Git training
Git trainingGit training
Git training
 

Git cli