SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
It's time to talk about Git
and the importance of
source control!
Imagine a scenario, if
you will...
You've uploaded a broken file,
you don't have a working copy.
What do you do?
Git to the rescue!
Revert the file, upload it
again, and life is great!
Wow! How does
Git work?
Sounds great, but how
do we use Git?
If you're intimidated by the command line,
I recommend SourceTree:
But I promise, using git
on the command line is
really easy!
Creating a new repository
is as easy as typing:
$ git init
This adds the basic structures Git needs
in order to function properly
Cloning an existing repository
is just as easy:
$ git clone <repo url>
This pulls down the entire git history for
a given project and lets you manipulate
it as if you had created it.
Adding files to your repository:
$ git add *
This will add ALL files in the current
directory to your repository.
Committing a set of changes:
$ git commit -m "My commit message"
This will save all staged changes to a
reference point you can always restore.
Checking a repository's status
$ git status
This reports which files have been
modified, added, removed, etc.
Un-staging some edited files:
$ git reset
This returns all staged files back to
being unstaged. It does NOT undo any
edits to those files by default.
Temporarily store staged edits:
$ git stash
Think of this as a way of saying, "I'm not
ready to do anything with these edits,
but I don't want to erase them."
Start a new "branch" for tracking edits:
$ git branch mybranch
We'll use this separate branch to
develop a new feature, safely isolated
from the main codebase and bug fixes.
$ git checkout -b mybranch
–or–
Merge a branch back into master:
$ git checkout master
$ git merge mybranch
First we switch back to the master
branch, then we merge in all changes
from mybranch.
Pushing Edits to a remote server:
$ git push
Yep, that's really all there is to it!
Any Questions?

Contenu connexe

Tendances

Git Cards - Keynote Format
Git Cards - Keynote FormatGit Cards - Keynote Format
Git Cards - Keynote FormatAdam Lowe
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control SystemVictor Wong
 
Git training cheat sheet
Git training cheat sheetGit training cheat sheet
Git training cheat sheetSkander Hamza
 
Swift ui userinput
Swift ui userinputSwift ui userinput
Swift ui userinputjoonjhokil
 
Protractor under the hood
Protractor under the hoodProtractor under the hood
Protractor under the hood輝 子安
 
Git Acquainted
Git AcquaintedGit Acquainted
Git Acquaintedtylerhunt
 
Undoing Things in Git
Undoing Things in GitUndoing Things in Git
Undoing Things in Gitgittower
 
Lagos GitHub Meetup - What is Git?
Lagos GitHub Meetup - What is Git?Lagos GitHub Meetup - What is Git?
Lagos GitHub Meetup - What is Git?Celestine Omin
 
Git missiontomars 2015-03-10
Git missiontomars 2015-03-10Git missiontomars 2015-03-10
Git missiontomars 2015-03-10msohn
 
Exprimiendo GIT
Exprimiendo GITExprimiendo GIT
Exprimiendo GITbetabeers
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - LudwigsburgNews from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburgmsohn
 

Tendances (20)

Git essentials
Git essentialsGit essentials
Git essentials
 
Git
GitGit
Git
 
Git Cards - Keynote Format
Git Cards - Keynote FormatGit Cards - Keynote Format
Git Cards - Keynote Format
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Git training cheat sheet
Git training cheat sheetGit training cheat sheet
Git training cheat sheet
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
 
Git 01
Git 01Git 01
Git 01
 
Swift ui userinput
Swift ui userinputSwift ui userinput
Swift ui userinput
 
Git for the absolute beginners
Git for the absolute beginnersGit for the absolute beginners
Git for the absolute beginners
 
Protractor under the hood
Protractor under the hoodProtractor under the hood
Protractor under the hood
 
Git Acquainted
Git AcquaintedGit Acquainted
Git Acquainted
 
Undoing Things in Git
Undoing Things in GitUndoing Things in Git
Undoing Things in Git
 
Lagos GitHub Meetup - What is Git?
Lagos GitHub Meetup - What is Git?Lagos GitHub Meetup - What is Git?
Lagos GitHub Meetup - What is Git?
 
Git slide
Git slideGit slide
Git slide
 
Git Going at JavaZone 2010
Git Going at JavaZone 2010Git Going at JavaZone 2010
Git Going at JavaZone 2010
 
Git operation 101
Git operation 101Git operation 101
Git operation 101
 
Git missiontomars 2015-03-10
Git missiontomars 2015-03-10Git missiontomars 2015-03-10
Git missiontomars 2015-03-10
 
Exprimiendo GIT
Exprimiendo GITExprimiendo GIT
Exprimiendo GIT
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - LudwigsburgNews from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
 
GIT - GOOD PRACTICES
GIT - GOOD PRACTICESGIT - GOOD PRACTICES
GIT - GOOD PRACTICES
 

En vedette

Mudanças no scrum guide (julho/2016)
Mudanças no scrum guide (julho/2016)Mudanças no scrum guide (julho/2016)
Mudanças no scrum guide (julho/2016)Augusto Rückert
 
A Taste of TDD: The basics of TDD, why it is hard and how to do it better
A Taste of TDD: The basics of TDD, why it is hard and how to do it betterA Taste of TDD: The basics of TDD, why it is hard and how to do it better
A Taste of TDD: The basics of TDD, why it is hard and how to do it betterJohn McCaffrey
 
The #1 Skill for Game Designers and How to Practice It
The #1 Skill for Game Designers and How to Practice ItThe #1 Skill for Game Designers and How to Practice It
The #1 Skill for Game Designers and How to Practice ItRoberto Dillon
 
Developing for Wearables with Xamarin
Developing for Wearables with XamarinDeveloping for Wearables with Xamarin
Developing for Wearables with XamarinGert Cominotto
 
TranSMART: How open source software revolutionizes drug discovery through cro...
TranSMART: How open source software revolutionizes drug discovery through cro...TranSMART: How open source software revolutionizes drug discovery through cro...
TranSMART: How open source software revolutionizes drug discovery through cro...keesvb
 
01 - Citizenship vs. Patriotism
01 - Citizenship vs. Patriotism01 - Citizenship vs. Patriotism
01 - Citizenship vs. PatriotismPaul English
 
Renderings of the Martin Luther King Jr. Memorial Library Renovation
Renderings of the Martin Luther King Jr. Memorial Library RenovationRenderings of the Martin Luther King Jr. Memorial Library Renovation
Renderings of the Martin Luther King Jr. Memorial Library RenovationZach Brown, MBA, CSSR
 
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...Sean Ekins
 
Marketing de conteúdo e inteligência coletiva - Gramado
Marketing de conteúdo e inteligência coletiva - GramadoMarketing de conteúdo e inteligência coletiva - Gramado
Marketing de conteúdo e inteligência coletiva - GramadoMarcio Okabe
 
Pantone's Color of the Year and How You Can Use It for Business
Pantone's Color of the Year and How You Can Use It for BusinessPantone's Color of the Year and How You Can Use It for Business
Pantone's Color of the Year and How You Can Use It for BusinessSlideGenius, Inc.
 
Certificado de apresentação
Certificado de apresentaçãoCertificado de apresentação
Certificado de apresentaçãoGuilherme Ponce
 
Real timefrauddetectiononbigdata
Real timefrauddetectiononbigdataReal timefrauddetectiononbigdata
Real timefrauddetectiononbigdataPranab Ghosh
 
Digital olympus – Serpstat
Digital olympus – SerpstatDigital olympus – Serpstat
Digital olympus – SerpstatIgor Gorbenko
 
Juliaのパッケージをつくろう!
Juliaのパッケージをつくろう!Juliaのパッケージをつくろう!
Juliaのパッケージをつくろう!Kenta Sato
 
多世代コミュニティを誘発する社会のデザイン
多世代コミュニティを誘発する社会のデザイン多世代コミュニティを誘発する社会のデザイン
多世代コミュニティを誘発する社会のデザインDementia Friendly Japan Initiative
 

En vedette (20)

Getting started
Getting startedGetting started
Getting started
 
Mudanças no scrum guide (julho/2016)
Mudanças no scrum guide (julho/2016)Mudanças no scrum guide (julho/2016)
Mudanças no scrum guide (julho/2016)
 
A Taste of TDD: The basics of TDD, why it is hard and how to do it better
A Taste of TDD: The basics of TDD, why it is hard and how to do it betterA Taste of TDD: The basics of TDD, why it is hard and how to do it better
A Taste of TDD: The basics of TDD, why it is hard and how to do it better
 
The #1 Skill for Game Designers and How to Practice It
The #1 Skill for Game Designers and How to Practice ItThe #1 Skill for Game Designers and How to Practice It
The #1 Skill for Game Designers and How to Practice It
 
Xbcom 275 week 3 dq 1
Xbcom 275 week 3 dq 1Xbcom 275 week 3 dq 1
Xbcom 275 week 3 dq 1
 
Developing for Wearables with Xamarin
Developing for Wearables with XamarinDeveloping for Wearables with Xamarin
Developing for Wearables with Xamarin
 
TranSMART: How open source software revolutionizes drug discovery through cro...
TranSMART: How open source software revolutionizes drug discovery through cro...TranSMART: How open source software revolutionizes drug discovery through cro...
TranSMART: How open source software revolutionizes drug discovery through cro...
 
01 - Citizenship vs. Patriotism
01 - Citizenship vs. Patriotism01 - Citizenship vs. Patriotism
01 - Citizenship vs. Patriotism
 
Renderings of the Martin Luther King Jr. Memorial Library Renovation
Renderings of the Martin Luther King Jr. Memorial Library RenovationRenderings of the Martin Luther King Jr. Memorial Library Renovation
Renderings of the Martin Luther King Jr. Memorial Library Renovation
 
Нетворкинг в бизнесе: связи, которые работают
Нетворкинг в бизнесе: связи, которые работаютНетворкинг в бизнесе: связи, которые работают
Нетворкинг в бизнесе: связи, которые работают
 
Eritema Nodoso
Eritema NodosoEritema Nodoso
Eritema Nodoso
 
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...
CDD: Vault, CDD: Vision and CDD: Models software for biologists and chemists ...
 
Marketing de conteúdo e inteligência coletiva - Gramado
Marketing de conteúdo e inteligência coletiva - GramadoMarketing de conteúdo e inteligência coletiva - Gramado
Marketing de conteúdo e inteligência coletiva - Gramado
 
1
11
1
 
Pantone's Color of the Year and How You Can Use It for Business
Pantone's Color of the Year and How You Can Use It for BusinessPantone's Color of the Year and How You Can Use It for Business
Pantone's Color of the Year and How You Can Use It for Business
 
Certificado de apresentação
Certificado de apresentaçãoCertificado de apresentação
Certificado de apresentação
 
Real timefrauddetectiononbigdata
Real timefrauddetectiononbigdataReal timefrauddetectiononbigdata
Real timefrauddetectiononbigdata
 
Digital olympus – Serpstat
Digital olympus – SerpstatDigital olympus – Serpstat
Digital olympus – Serpstat
 
Juliaのパッケージをつくろう!
Juliaのパッケージをつくろう!Juliaのパッケージをつくろう!
Juliaのパッケージをつくろう!
 
多世代コミュニティを誘発する社会のデザイン
多世代コミュニティを誘発する社会のデザイン多世代コミュニティを誘発する社会のデザイン
多世代コミュニティを誘発する社会のデザイン
 

Similaire à WPGR - Intro to Git (on the Command Line)

Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubDSC GVP
 
Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git John Tighe
 
Git tutorial undoing changes
Git tutorial   undoing changesGit tutorial   undoing changes
Git tutorial undoing changesLearningTech
 
Git slides
Git slidesGit slides
Git slidesNanyak S
 
Version control with Git
Version control with GitVersion control with Git
Version control with GitClaudio Montoya
 
Introduction To Git Workshop
Introduction To Git WorkshopIntroduction To Git Workshop
Introduction To Git Workshopthemystic_ca
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about gitSothearin Ren
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__greyKing Hom
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__whiteKing Hom
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_darkKing Hom
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxHitesh670643
 
Git Basics (Professionals)
 Git Basics (Professionals) Git Basics (Professionals)
Git Basics (Professionals)bryanbibat
 

Similaire à WPGR - Intro to Git (on the Command Line) (20)

Git github
Git githubGit github
Git github
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
 
Git tutorial undoing changes
Git tutorial   undoing changesGit tutorial   undoing changes
Git tutorial undoing changes
 
Git slides
Git slidesGit slides
Git slides
 
Version control with Git
Version control with GitVersion control with Git
Version control with Git
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
Git learning
Git learningGit learning
Git learning
 
Introduction To Git Workshop
Introduction To Git WorkshopIntroduction To Git Workshop
Introduction To Git Workshop
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
Learning git
Learning gitLearning git
Learning git
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
 
Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__grey
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__white
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_dark
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Git Basics (Professionals)
 Git Basics (Professionals) Git Basics (Professionals)
Git Basics (Professionals)
 

Plus de Brian Richards

Awarding Behavior & Altering Businesses with WordPress
Awarding Behavior & Altering Businesses with WordPressAwarding Behavior & Altering Businesses with WordPress
Awarding Behavior & Altering Businesses with WordPressBrian Richards
 
Becoming a Better Developer #WCA2
Becoming a Better Developer #WCA2Becoming a Better Developer #WCA2
Becoming a Better Developer #WCA2Brian Richards
 
Learn Something Useful Every Day
Learn Something Useful Every DayLearn Something Useful Every Day
Learn Something Useful Every DayBrian Richards
 
I Don't Hate You, I Just Hate Your Code
I Don't Hate You, I Just Hate Your CodeI Don't Hate You, I Just Hate Your Code
I Don't Hate You, I Just Hate Your CodeBrian Richards
 
Using a Framework Won't Box You In
Using a Framework Won't Box You InUsing a Framework Won't Box You In
Using a Framework Won't Box You InBrian Richards
 
Developing for Success -or- Any Fool Can Do This
Developing for Success -or- Any Fool Can Do ThisDeveloping for Success -or- Any Fool Can Do This
Developing for Success -or- Any Fool Can Do ThisBrian Richards
 

Plus de Brian Richards (6)

Awarding Behavior & Altering Businesses with WordPress
Awarding Behavior & Altering Businesses with WordPressAwarding Behavior & Altering Businesses with WordPress
Awarding Behavior & Altering Businesses with WordPress
 
Becoming a Better Developer #WCA2
Becoming a Better Developer #WCA2Becoming a Better Developer #WCA2
Becoming a Better Developer #WCA2
 
Learn Something Useful Every Day
Learn Something Useful Every DayLearn Something Useful Every Day
Learn Something Useful Every Day
 
I Don't Hate You, I Just Hate Your Code
I Don't Hate You, I Just Hate Your CodeI Don't Hate You, I Just Hate Your Code
I Don't Hate You, I Just Hate Your Code
 
Using a Framework Won't Box You In
Using a Framework Won't Box You InUsing a Framework Won't Box You In
Using a Framework Won't Box You In
 
Developing for Success -or- Any Fool Can Do This
Developing for Success -or- Any Fool Can Do ThisDeveloping for Success -or- Any Fool Can Do This
Developing for Success -or- Any Fool Can Do This
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Dernier (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

WPGR - Intro to Git (on the Command Line)

  • 1. It's time to talk about Git and the importance of source control!
  • 2. Imagine a scenario, if you will...
  • 3. You've uploaded a broken file, you don't have a working copy. What do you do?
  • 4. Git to the rescue!
  • 5. Revert the file, upload it again, and life is great!
  • 7.
  • 8.
  • 9.
  • 10. Sounds great, but how do we use Git?
  • 11. If you're intimidated by the command line, I recommend SourceTree:
  • 12. But I promise, using git on the command line is really easy!
  • 13. Creating a new repository is as easy as typing: $ git init This adds the basic structures Git needs in order to function properly
  • 14. Cloning an existing repository is just as easy: $ git clone <repo url> This pulls down the entire git history for a given project and lets you manipulate it as if you had created it.
  • 15. Adding files to your repository: $ git add * This will add ALL files in the current directory to your repository.
  • 16. Committing a set of changes: $ git commit -m "My commit message" This will save all staged changes to a reference point you can always restore.
  • 17. Checking a repository's status $ git status This reports which files have been modified, added, removed, etc.
  • 18. Un-staging some edited files: $ git reset This returns all staged files back to being unstaged. It does NOT undo any edits to those files by default.
  • 19. Temporarily store staged edits: $ git stash Think of this as a way of saying, "I'm not ready to do anything with these edits, but I don't want to erase them."
  • 20. Start a new "branch" for tracking edits: $ git branch mybranch We'll use this separate branch to develop a new feature, safely isolated from the main codebase and bug fixes. $ git checkout -b mybranch –or–
  • 21. Merge a branch back into master: $ git checkout master $ git merge mybranch First we switch back to the master branch, then we merge in all changes from mybranch.
  • 22. Pushing Edits to a remote server: $ git push Yep, that's really all there is to it!