SlideShare une entreprise Scribd logo
1  sur  16
Télécharger pour lire hors ligne
Hi, my name is
Frankie Jarrett
from St. Joseph, MO
I’m a WordPress developer &
entrepreneur.
Version Control Using Git
Frankie Jarrett
@fjarrett
VERSION CONTROL
USING GIT
Version Control Using Git
Frankie Jarrett
@fjarrett
1. Tools you need (free)
2. Basic CLI commands
3. Basic Git commands
4. Setup and use a repo
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
it’s too complicated.
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
I’m set in my ways.
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
I don’t know where to
start.
Version Control Using Git
Frankie Jarrett
@fjarrett
YOUR LIFE
CAN BE CHANGED
TODAY
Version Control Using Git
Frankie Jarrett
@fjarrett
Why use command line?
But I don’t do server ops!
GUI == Graphic User Interface
CLI == Command Line Interface
GUI’s are limiting. The command line is
freedom, control and speed.
After a while you will find yourself feeling
slowed down by your mouse and craving the
terminal.
Is there a GUI option for using Git?
As far as you’re concerned, no there isn’t.
Version Control Using Git
Frankie Jarrett
@fjarrett
POSIX
POSIX == Portable Operating System Interface
● Unix
● Linux
● Solaris
● BSD
● Darwin (Mac OS X)
POSIX basically means that these operating
systems use the same utility interface.
So the CLI commands look the same, and
work the same, across all of these systems.
Version Control Using Git
Frankie Jarrett
@fjarrett
Windows is not a POSIX-compatible
operating system, so it’s command line tools
aren’t quite the same.
If we were .NET developers, then we would
have to use Windows.
But we are WordPress developers, so it’s
likely that our web servers are running some
form of Linux.
The point of local development is to mimic
live environments as much as possible.
Still using Windows?
Windows != POSIX
Version Control Using Git
Frankie Jarrett
@fjarrett
Our Toolbox
Everything is free and comes in easy-to-install packages
Version Control Using Git
Frankie Jarrett
@fjarrett
● Xcode 5.1.1
○ Git
● iTerm2
We’ll be running these on OS X Mavericks (10.9.3)
● Change directories: cd wp-content/themes
● Shortcut to your home directory: cd ~
● Go up one directory: cd ..
● List: ls or ls -la
● Create a file: touch filename.txt
● Edit a file: nano filename.txt
● Clean up our terminal view: clear
Protip: Tab-completion is your best friend!
Easy POSIX Commands
A few CLI tips to hit the ground running
Version Control Using Git
Frankie Jarrett
@fjarrett
1. Add our Name and Email to the Git config on our computer
2. Create an SSH Public Key on our computer
3. Add our Public Key to our account profile on GitHub.com
4. Clone a repo onto our computer using SSH
5. Commit and push changes back to GitHub.com
Protip: Git != GitHub.com
Link to GitHub over SSH
SSH == Secure Shell
Version Control Using Git
Frankie Jarrett
@fjarrett
● See your changed files: git status
● Queue up files: git add -A
● Make a commit: git commit -m ‘Fixed a broken footer link’
● Push our commits to GitHub.com: git push
● Pull down the latest from GitHub.com: git pull
● Switch branches: git checkout branchname
Protip: Go bookmark GitRef.org as a handy reference!
Easy Git Commands
A few Git CLI tips to hit the ground running
Version Control Using Git
Frankie Jarrett
@fjarrett
LET’S
GIT STARTED
;-)
Version Control Using Git
Frankie Jarrett
@fjarrett
THANKS FOR
LISTENING
Version Control Using Git
Frankie Jarrett
@fjarrett
frankiejarrett.com
Follow me @fjarrett

Contenu connexe

Tendances

Cloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectCloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectTodor Todorov
 
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Codemotion
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github SahilSonar4
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG AntwerpKrimson
 
Around the PHP Community
Around the PHP CommunityAround the PHP Community
Around the PHP CommunityBen Ramsey
 
Formal verification of algorithms
Formal verification of algorithmsFormal verification of algorithms
Formal verification of algorithmsJordy Moos
 
Moving to Git
Moving to GitMoving to Git
Moving to GitTim Moore
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesMitali Bisht
 

Tendances (11)

Git
GitGit
Git
 
Cloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectCloud agnostic serverless with fn project
Cloud agnostic serverless with fn project
 
Git introduction
Git introductionGit introduction
Git introduction
 
How to install and use git
How to install and  use gitHow to install and  use git
How to install and use git
 
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG Antwerp
 
Around the PHP Community
Around the PHP CommunityAround the PHP Community
Around the PHP Community
 
Formal verification of algorithms
Formal verification of algorithmsFormal verification of algorithms
Formal verification of algorithms
 
Moving to Git
Moving to GitMoving to Git
Moving to Git
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notes
 

En vedette

大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗
 
Recomercializacioncafe
RecomercializacioncafeRecomercializacioncafe
Recomercializacioncafeluna bella
 
It центр рыбасова. о компании
It центр рыбасова. о компанииIt центр рыбасова. о компании
It центр рыбасова. о компанииNatalia Medovnik
 
大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗
 
industria del cafe
industria del cafeindustria del cafe
industria del cafeluna bella
 
WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!Frankie Jarrett
 
Visiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionVisiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionBuddhist Architecture
 

En vedette (10)

大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ
 
Mp 8086
Mp 8086Mp 8086
Mp 8086
 
Sample powerpoint
Sample powerpointSample powerpoint
Sample powerpoint
 
Recomercializacioncafe
RecomercializacioncafeRecomercializacioncafe
Recomercializacioncafe
 
It центр рыбасова. о компании
It центр рыбасова. о компанииIt центр рыбасова. о компании
It центр рыбасова. о компании
 
大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ
 
Herbology
HerbologyHerbology
Herbology
 
industria del cafe
industria del cafeindustria del cafe
industria del cafe
 
WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!
 
Visiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionVisiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick Introduction
 

Similaire à WordCamp KC 2014: Version Control Using Git

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfGDSCKNUST
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersMartin Jinoch
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control SystemMd. Mujahid Islam
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with gitgdgjss
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course Eslam Saeed
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubNhi Nguyen
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)chenghlee
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 

Similaire à WordCamp KC 2014: Version Control Using Git (20)

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
git KT .pptx
git KT .pptxgit KT .pptx
git KT .pptx
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git training
Git trainingGit training
Git training
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
 
Hacktoberfest 2022
Hacktoberfest 2022Hacktoberfest 2022
Hacktoberfest 2022
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 

Dernier

AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyRaymond Okyere-Forson
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionsNirav Modi
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsJaydeep Chhasatia
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntelliSource Technologies
 
Watermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesWatermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesShyamsundar Das
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeNeo4j
 
Webinar_050417_LeClair12345666777889.ppt
Webinar_050417_LeClair12345666777889.pptWebinar_050417_LeClair12345666777889.ppt
Webinar_050417_LeClair12345666777889.pptkinjal48
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...OnePlan Solutions
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesSoftwareMill
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmonyelliciumsolutionspun
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampVICTOR MAESTRE RAMIREZ
 
Top Software Development Trends in 2024
Top Software Development Trends in  2024Top Software Development Trends in  2024
Top Software Development Trends in 2024Mind IT Systems
 
JS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIJS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIIvo Andreev
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilVICTOR MAESTRE RAMIREZ
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?AmeliaSmith90
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxJoão Esperancinha
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies
 
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLBig Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLAlluxio, Inc.
 
Sales Territory Management: A Definitive Guide to Expand Sales Coverage
Sales Territory Management: A Definitive Guide to Expand Sales CoverageSales Territory Management: A Definitive Guide to Expand Sales Coverage
Sales Territory Management: A Definitive Guide to Expand Sales CoverageDista
 

Dernier (20)

AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human Beauty
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspections
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptx
 
Watermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesWatermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security Challenges
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG time
 
Webinar_050417_LeClair12345666777889.ppt
Webinar_050417_LeClair12345666777889.pptWebinar_050417_LeClair12345666777889.ppt
Webinar_050417_LeClair12345666777889.ppt
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retries
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - Datacamp
 
Top Software Development Trends in 2024
Top Software Development Trends in  2024Top Software Development Trends in  2024
Top Software Development Trends in 2024
 
JS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AIJS-Experts - Cybersecurity for Generative AI
JS-Experts - Cybersecurity for Generative AI
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-Council
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?
 
Salesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptxSalesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptx
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptx
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in Trivandrum
 
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLBig Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
 
Sales Territory Management: A Definitive Guide to Expand Sales Coverage
Sales Territory Management: A Definitive Guide to Expand Sales CoverageSales Territory Management: A Definitive Guide to Expand Sales Coverage
Sales Territory Management: A Definitive Guide to Expand Sales Coverage
 

WordCamp KC 2014: Version Control Using Git

  • 1. Hi, my name is Frankie Jarrett from St. Joseph, MO I’m a WordPress developer & entrepreneur. Version Control Using Git Frankie Jarrett @fjarrett
  • 2. VERSION CONTROL USING GIT Version Control Using Git Frankie Jarrett @fjarrett
  • 3. 1. Tools you need (free) 2. Basic CLI commands 3. Basic Git commands 4. Setup and use a repo Version Control Using Git Frankie Jarrett @fjarrett
  • 4. Frankie, I want to use version control but… it’s too complicated. Version Control Using Git Frankie Jarrett @fjarrett
  • 5. Frankie, I want to use version control but… I’m set in my ways. Version Control Using Git Frankie Jarrett @fjarrett
  • 6. Frankie, I want to use version control but… I don’t know where to start. Version Control Using Git Frankie Jarrett @fjarrett
  • 7. YOUR LIFE CAN BE CHANGED TODAY Version Control Using Git Frankie Jarrett @fjarrett
  • 8. Why use command line? But I don’t do server ops! GUI == Graphic User Interface CLI == Command Line Interface GUI’s are limiting. The command line is freedom, control and speed. After a while you will find yourself feeling slowed down by your mouse and craving the terminal. Is there a GUI option for using Git? As far as you’re concerned, no there isn’t. Version Control Using Git Frankie Jarrett @fjarrett
  • 9. POSIX POSIX == Portable Operating System Interface ● Unix ● Linux ● Solaris ● BSD ● Darwin (Mac OS X) POSIX basically means that these operating systems use the same utility interface. So the CLI commands look the same, and work the same, across all of these systems. Version Control Using Git Frankie Jarrett @fjarrett
  • 10. Windows is not a POSIX-compatible operating system, so it’s command line tools aren’t quite the same. If we were .NET developers, then we would have to use Windows. But we are WordPress developers, so it’s likely that our web servers are running some form of Linux. The point of local development is to mimic live environments as much as possible. Still using Windows? Windows != POSIX Version Control Using Git Frankie Jarrett @fjarrett
  • 11. Our Toolbox Everything is free and comes in easy-to-install packages Version Control Using Git Frankie Jarrett @fjarrett ● Xcode 5.1.1 ○ Git ● iTerm2 We’ll be running these on OS X Mavericks (10.9.3)
  • 12. ● Change directories: cd wp-content/themes ● Shortcut to your home directory: cd ~ ● Go up one directory: cd .. ● List: ls or ls -la ● Create a file: touch filename.txt ● Edit a file: nano filename.txt ● Clean up our terminal view: clear Protip: Tab-completion is your best friend! Easy POSIX Commands A few CLI tips to hit the ground running Version Control Using Git Frankie Jarrett @fjarrett
  • 13. 1. Add our Name and Email to the Git config on our computer 2. Create an SSH Public Key on our computer 3. Add our Public Key to our account profile on GitHub.com 4. Clone a repo onto our computer using SSH 5. Commit and push changes back to GitHub.com Protip: Git != GitHub.com Link to GitHub over SSH SSH == Secure Shell Version Control Using Git Frankie Jarrett @fjarrett
  • 14. ● See your changed files: git status ● Queue up files: git add -A ● Make a commit: git commit -m ‘Fixed a broken footer link’ ● Push our commits to GitHub.com: git push ● Pull down the latest from GitHub.com: git pull ● Switch branches: git checkout branchname Protip: Go bookmark GitRef.org as a handy reference! Easy Git Commands A few Git CLI tips to hit the ground running Version Control Using Git Frankie Jarrett @fjarrett
  • 15. LET’S GIT STARTED ;-) Version Control Using Git Frankie Jarrett @fjarrett
  • 16. THANKS FOR LISTENING Version Control Using Git Frankie Jarrett @fjarrett frankiejarrett.com Follow me @fjarrett