SlideShare a Scribd company logo
1 of 16
Download to read offline
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

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked

大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗
 
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
 

Viewers also liked (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
 

Similar to 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
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfuzair
 
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
 

Similar to 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
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
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)
 

Recently uploaded

UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxRTS corp
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfYashikaSharma391629
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 

Recently uploaded (20)

UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 

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