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

PPT
Basic git
PDF
Git is my hero
PDF
Now i git it!!!
PDF
Git: An introduction of plumbing and porcelain commands
PPTX
PPTX
Introduction to Gitlab | Gitlab 101 | Training Session
PPT
Atlanta Pm Git 101
Basic git
Git is my hero
Now i git it!!!
Git: An introduction of plumbing and porcelain commands
Introduction to Gitlab | Gitlab 101 | Training Session
Atlanta Pm Git 101

What's hot (20)

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

Viewers also liked (6)

PDF
Trello, git, gitlab, gitlab-ci
DOC
Lesson 7 9 congruence
PDF
Numero uno (IC) Award
PPT
Culinary Portfolio
PDF
Iram 3517 2contmant_y_recarga
PPTX
Giants Wizards and Robots - Building all camp games at summer camp
Trello, git, gitlab, gitlab-ci
Lesson 7 9 congruence
Numero uno (IC) Award
Culinary Portfolio
Iram 3517 2contmant_y_recarga
Giants Wizards and Robots - Building all camp games at summer camp
Ad

Similar to Git cli (20)

PDF
Git - An Introduction
PPT
Git101
PDF
Git Workshop : Git On The Server
PDF
GTFO: Git Theory For OpenSource
PPTX
Git & G
ODP
Git, Beginner to Advanced Survey
PDF
Git, Jenkins & Chuck
PPT
Collaboration With Git and GitHub
PPTX
Git & GitHub
PPT
390a gitintro 12au
PDF
Git and github fundamental
PPTX
14 oct Git & GitHub.pptx
PDF
Version Control with Git & GitHub
PPTX
Git tutorial
PDF
Deep dark-side of git: How git works internally
PPT
Git Heaven with Wakanda
PDF
Phishing url detection: A real - case scenario through login URLs
PPTX
Git Ninja KT (GitHub to GitLab)
PPTX
GitHub Event.pptx
PPTX
Git Obstacle Course: Stop BASHing your head and break down the basics
Git - An Introduction
Git101
Git Workshop : Git On The Server
GTFO: Git Theory For OpenSource
Git & G
Git, Beginner to Advanced Survey
Git, Jenkins & Chuck
Collaboration With Git and GitHub
Git & GitHub
390a gitintro 12au
Git and github fundamental
14 oct Git & GitHub.pptx
Version Control with Git & GitHub
Git tutorial
Deep dark-side of git: How git works internally
Git Heaven with Wakanda
Phishing url detection: A real - case scenario through login URLs
Git Ninja KT (GitHub to GitLab)
GitHub Event.pptx
Git Obstacle Course: Stop BASHing your head and break down the basics

Git cli