Git
Hi
Robert
@rmaclean
sadev.co.za
devconf.co.za
developerug.org.za
What is Git?
Source control
Tool for sharing
Tool for learning
Tool to make experiments easy
A FREAKING TIME MACHINE
Going to show command line &
GUI
Git
What do we
have to
cover
1. Get Git
2. Config
3. Init Git
4. Status
5. Add file
6. Commit
7. Log
8. Undo
9. Diff
10. GitHub
11. Clone
12. Fork
13. Push & Pull
14. Pull Request
How to get Git
Download from: git-scm.com
Or from your favourite package
manager
Mac: $ brew install git
Debian: $ apt-get install git
Windows: $ winget install git
Or it is in your favourite
development tools 💕
Just text files
Name & email are the most (only)
important
$ git config --global user.name "John
Doe"
$ git config --global user.email
johndoe@example.com
Config
Init
Creates a new empty repo
Status
Shows you the status
Add
Files can be untracked, so this tells git to start tracking them
Git can then know if it modified or unmodified
Add tells git to both start tracking (if needed) and stage it
Staging means you can choose what to save each time
Tip: . = wildcard
Commit
Tells Git to save a copy of the work
Add a message to help you remember it
Log
Just look through your history
Can see the magic commit numbers
Undo
Restore an uncommit change (was also Reset before)
Reset is to rollback history
--hard undo rollback files vs. making files modified
Diff
See the differences…
Personally prefer gui tools for this
GitHub
Most important thing is this is an Octocat
GitHub
Central location for your code, documents…
anything
Can be private or public
Great for sharing
github.com/South-Africa-Government-
Procurement/Data-cleaning
Clone
Make a copy of the source
Sets a remote location too so you
can update later
Something you do very rarely
Internal work, used
External work, not used
Fork
Make a copy of a repository in
GitHub
Gives you a place you control
All part of GitHub
Pull & Push
Push upload
to server
Pull get from
server
Pull Request
Compare a fork to another repo
and make a difference
Create a document and allow the
owners of the other repo to accept
it
Way to send code from your place
of play, to others
Never forget 😎

More Related Content

PPTX
Building a µservice with Kotlin, Micronaut & GCP
PDF
GitHub Talk - Cody Carnachan
PDF
Intro to Git & GitHub
PDF
Gitlab meets Kubernetes
PDF
Teaching a Designer to Use GitHub
PPTX
PPTX
Introduction to git and Github
PDF
GitHub Actions in action
Building a µservice with Kotlin, Micronaut & GCP
GitHub Talk - Cody Carnachan
Intro to Git & GitHub
Gitlab meets Kubernetes
Teaching a Designer to Use GitHub
Introduction to git and Github
GitHub Actions in action

What's hot (20)

PPTX
PDF
Supercharge your app with Cloud Functions for Firebase
PPTX
Building A Distributed Build System at Google Scale (StrangeLoop 2016)
PPTX
Git n git hub
PPTX
Git Going w/ Git
PDF
GitHub Actions with Node.js
PPTX
GitHub Actions demo with mabl
PPTX
Up GitLab Presentation 2015
PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
PPTX
Github in Action
PDF
How to use any static site generator with GitLab Pages.
PPTX
GitHub Actions - Melbourne UG
PDF
Distributed systems in practice, in theory (JAX London)
PPTX
CI/CD with GitHub Actions
PDF
Cloud Spin - building a photo booth with the Google Cloud Platform
PDF
Intro to Git and GitHub
PPTX
Git & Github
PDF
Sprachsteuerung mit dem Google Assistant – Add a new User Interface to your P...
PDF
沒有 GUI 的 Git
PPTX
Quick workflow of a nodejs api
Supercharge your app with Cloud Functions for Firebase
Building A Distributed Build System at Google Scale (StrangeLoop 2016)
Git n git hub
Git Going w/ Git
GitHub Actions with Node.js
GitHub Actions demo with mabl
Up GitLab Presentation 2015
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Github in Action
How to use any static site generator with GitLab Pages.
GitHub Actions - Melbourne UG
Distributed systems in practice, in theory (JAX London)
CI/CD with GitHub Actions
Cloud Spin - building a photo booth with the Google Cloud Platform
Intro to Git and GitHub
Git & Github
Sprachsteuerung mit dem Google Assistant – Add a new User Interface to your P...
沒有 GUI 的 Git
Quick workflow of a nodejs api
Ad

Similar to Git (20)

PDF
Git why how when and more
PDF
Advanted git
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PPTX
git github PPT_GDSCIIITK.pptx
PPT
git2.ppt
PPTX
Introduction to git hub
PPT
Introduction to Git
PPTX
Introduction to Git and Github
PDF
Git cheat-sheets
PPTX
Git session Dropsolid.com
PPTX
Introduction to GitHub, Open Source and Tech Article
ODP
Git presentation
PDF
Github and Git What the fuck is this shit .pdf
PDF
Essential Git and Github commands
PPTX
Git Basics for Software Version Management
PDF
Mini git tutorial
PDF
Git Version Control for the Complete N00b by Adam LaBarge
PDF
Git basics
PDF
Git hub
Git why how when and more
Advanted git
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
git github PPT_GDSCIIITK.pptx
git2.ppt
Introduction to git hub
Introduction to Git
Introduction to Git and Github
Git cheat-sheets
Git session Dropsolid.com
Introduction to GitHub, Open Source and Tech Article
Git presentation
Github and Git What the fuck is this shit .pdf
Essential Git and Github commands
Git Basics for Software Version Management
Mini git tutorial
Git Version Control for the Complete N00b by Adam LaBarge
Git basics
Git hub
Ad

More from Robert MacLean (20)

PPTX
Deno ...................................
PPTX
14 things you need to be a successful software developer (v3)
PPTX
OWASP TOP 10
PPTX
Looking at the Vue
PPTX
Kotlin 101
PPTX
Features of Kotlin I find exciting
PPTX
JavaScript Gotchas
PPTX
DevConf Survival Guide
PPTX
The state of testing @ Microsoft
PPTX
Visual Studio ❤ JavaScript
PPTX
What is new in C# 6?
PPTX
Putting the DOT in .NET - Dev/Ops/Test
PPTX
A Developer Day 2014 - Durban
PPTX
Agile lessons learned in the Microsoft ALM Rangers
PPTX
Hour of code - Train the trainer
PPTX
Building services for apps on a shoestring budget
PPTX
3 things your app API is doing WRONG
PPTX
PPTX
LightSwitch
PPTX
How to build a Mobile API or HTML 5 app in 5 minutes
Deno ...................................
14 things you need to be a successful software developer (v3)
OWASP TOP 10
Looking at the Vue
Kotlin 101
Features of Kotlin I find exciting
JavaScript Gotchas
DevConf Survival Guide
The state of testing @ Microsoft
Visual Studio ❤ JavaScript
What is new in C# 6?
Putting the DOT in .NET - Dev/Ops/Test
A Developer Day 2014 - Durban
Agile lessons learned in the Microsoft ALM Rangers
Hour of code - Train the trainer
Building services for apps on a shoestring budget
3 things your app API is doing WRONG
LightSwitch
How to build a Mobile API or HTML 5 app in 5 minutes

Recently uploaded (20)

PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
SaaS reusability assessment using machine learning techniques
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PPTX
Internet of Everything -Basic concepts details
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Lung cancer patients survival prediction using outlier detection and optimize...
SaaS reusability assessment using machine learning techniques
Advancing precision in air quality forecasting through machine learning integ...
Enhancing plagiarism detection using data pre-processing and machine learning...
SGT Report The Beast Plan and Cyberphysical Systems of Control
Convolutional neural network based encoder-decoder for efficient real-time ob...
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Rapid Prototyping: A lecture on prototyping techniques for interface design
Improvisation in detection of pomegranate leaf disease using transfer learni...
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
MuleSoft-Compete-Deck for midddleware integrations
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Internet of Everything -Basic concepts details
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
4 layer Arch & Reference Arch of IoT.pdf
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf

Git