SlideShare a Scribd company logo
Git & GitHub for
beginners 🚀
@paal_ringstad
INTRO TIME 🎉
1. What brought you here
tonight
2. One passion of yours
3. Your lovely name
Let’s make it easy
local vs. online
Before: Versioning
SETUP
Git local commands: initialising
$ git config --global user.name “your name”
$ git config --global user.email “your email”
$ git init
Command Line
One folder
Git & Github Workshop - Le Wagon Melbourne
Terminal commands: basics
$ pwd
$ ls
$ cd project_name
$ cd ..
$ mkdir project_name
$ touch file_name
Commit
Git & Github Workshop - Le Wagon Melbourne
Git local commands: commit
$ git status
$ git diff
$ git add file_name
$ git commit -m “a meaningful message”
$ git log
Branches
master
master branch
new branch
$ git branch branch_name
$ git checkout branch_name
$ git diff master branch_name
$ git merge branch_name
$ git branch -d branch_name
git local commands: branching
Remote
text vs. code
git remote commands
$ git remote -v
$ git clone link (HTTPS)
$ git push origin <branch_name>
$ git pull origin <branch_name>
+
Pull Request
Please accept my pull request
PULL REQUESTS
Challenges 💪
The following slides are challenges to solve with
your workshop buddy (pair programming).
Part 1 - Git
Using git via the command line to create a new
project and version it
challenge 1
Open your terminal. Using the command line, create a
new folder on your Desktop. Jump into this newly-
created folder, then create a new HTML file.The
convention is to call this file “index.html”.
How you do know the file was successfully created?
challenge 2
If not done already, set your identity in git. Then initialise
git inside the current folder. Make a first commit. By
convention, the commit message for the first commit is:
“initial commit”
challenge 3
Drag and drop the HMTL file in your text / code editor
(Sublime Text). Then write some stuff in it. Finally, save
the file! How do you review what changed in the HTML
file using git? Make a new commit to explain what
changed.
challenge 4
Create a new branch and jump onto that branch. How
do you know how many branches there are in the
project? How do you know which branch you are on?
challenge 5
Make some changes to the HTML file again. Save it!
Commit these changes onto the branch. Go back to the
master branch.
What do you notice in your HTML file?
challenge 6
Merge your branch onto master, then delete the branch
your previously created so that you don’t have already
used branches lagging behind.
Again, what do you notice in your HTML file?
challenge 7
Using terminal commands, exit your current repository
and go back to the Desktop repository.
Part 2 - Github
Using git along with GitHub to collaborate on
an existing project online.
challenge 8
Find out what your Github username is. Then write it
down in the comment section of the Meetup page of
this event (where I shared the link of these slides). Let
me know when it’s done, I’ll add you to the project on
GitHub. 🙂
challenge 9
Click on this link to accept my invitation to the GitHub
repository: http://bit.ly/wagonmelgit. You’re now a
collaborator of this repository and have push and pull
access.
+
challenge 10
Clone a copy of this repository using the HTTPS link:
http://bit.ly/gitgit1 - Then jump into that repository. For
your information, cloning a project from Github
automatically initialises git.
+
challenge 11
Create a new branch, then update the HTML file
according to the instructions in it and save it. Finally,
commit the changes on that branch.
+
challenge 12
How do you list the remote repositories linked to your
project? You need to find Github’s nickname to be able
to push your branch there. Using git, push your branch
to GitHub.
+
final challenge 🎉
Go to the repository page on Github:
https://github.com/twinturtle42/github_lewagonMEL
Open a Pull Request for me to review and let me know
when it’s done 🙂
+
congrats 😎
If your Pull Request got accepted, your changes are
added to the codebase and available online forever!
https://charlymartin.github.io/github_workshop/
Le Wagon brings technical skills
to creative people
9 weeks | 300+ challenges | 45+ lectures
Custom tools & pedagogy
Program outline
Ruby, command line & git
Software engineering
Database & SQL
HTML, CSS, JavaScript
Rails, Heroku
Github flow
Best bootcamp in the world
Apply at lewagon.com/melbourne
Outcomes
1. Interact with computer
via the command line
2. Tell the difference
between Git & Github
3. Collaborate on an open
source project

More Related Content

What's hot (20)

KEY
Matt Gauger - Git & Github web414 December 2010
Matt Gauger
 
PPTX
Git tutorial
TingYen Lee
 
PDF
Git and github - Verson Control for the Modern Developer
John Stevenson
 
PPTX
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
PPTX
Introduction to Git / Github
Paige Bailey
 
PPTX
Github
JaneAlamAdnan
 
PPTX
Introduction to Git and GitHub Part 1
Omar Fathy
 
PPTX
Intro to Git and GitHub
Uri Goldstein
 
PPTX
Hacktoberfest slides
FatimaYousif11
 
PPTX
Extra bit with git
Himanshu Agrawal
 
PDF
Git and GitHub crash course
Mireia Sangalo
 
PDF
Introduction to GitHub
Nishan Bose
 
PDF
Github Case Study By Amil Ali
AmilAli1
 
PPTX
Quick and easy way to get started with Git & GitHub
Ashoka R K T
 
PDF
Advance workshop on git
Himanshu Agrawal
 
PPTX
Extra bit with git
gdgjss
 
PDF
Git, GitHub and Open Source
Lorna Mitchell
 
PPTX
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Nisha Garg
 
PDF
Contributing to Open Source #Hacktoberfest
Cheah Eng Soon
 
PDF
Git & GitHub for Beginners
Sébastien Saunier
 
Matt Gauger - Git & Github web414 December 2010
Matt Gauger
 
Git tutorial
TingYen Lee
 
Git and github - Verson Control for the Modern Developer
John Stevenson
 
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
Introduction to Git / Github
Paige Bailey
 
Introduction to Git and GitHub Part 1
Omar Fathy
 
Intro to Git and GitHub
Uri Goldstein
 
Hacktoberfest slides
FatimaYousif11
 
Extra bit with git
Himanshu Agrawal
 
Git and GitHub crash course
Mireia Sangalo
 
Introduction to GitHub
Nishan Bose
 
Github Case Study By Amil Ali
AmilAli1
 
Quick and easy way to get started with Git & GitHub
Ashoka R K T
 
Advance workshop on git
Himanshu Agrawal
 
Extra bit with git
gdgjss
 
Git, GitHub and Open Source
Lorna Mitchell
 
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Nisha Garg
 
Contributing to Open Source #Hacktoberfest
Cheah Eng Soon
 
Git & GitHub for Beginners
Sébastien Saunier
 

Similar to Git & Github Workshop - Le Wagon Melbourne (20)

PDF
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
PDF
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
Nhi Nguyen
 
PPTX
Git and GitHub
Priya Nayak
 
PPTX
GitHub Event.pptx
KeerthanaJ32
 
PPTX
Introduction to Git and Github
Md Atique Ahmed Ziad
 
PDF
Git the Docs: A fun, hands-on introduction to version control
Becky Todd
 
PPTX
Intro. to Git and Github
Olmo F. Maldonado
 
PPTX
Git and GitHub workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
PPTX
tech winter break workshop on git &git hub.pptx
ashishraulin
 
PDF
Git for beginners
Andy Slocum
 
PPTX
Git One Day Training Notes
glen_a_smith
 
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
AmaraCostachiu
 
PPTX
Untangling fall2017 week2
Derek Jacoby
 
PPTX
Untangling fall2017 week2_try2
Derek Jacoby
 
PDF
Contributing to github is for everyone
Matt Heusser
 
PPTX
11 git version control
Wasim Alatrash
 
PPTX
Git Repository for Developers working in Various Locations
Ganesh Bhosale
 
PDF
Nina Zakharenko - Introduction to Git - Start SLC 2015
Nina Zakharenko
 
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
Nhi Nguyen
 
Git and GitHub
Priya Nayak
 
GitHub Event.pptx
KeerthanaJ32
 
Introduction to Git and Github
Md Atique Ahmed Ziad
 
Git the Docs: A fun, hands-on introduction to version control
Becky Todd
 
Intro. to Git and Github
Olmo F. Maldonado
 
Git and GitHub workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Git for beginners
Andy Slocum
 
Git One Day Training Notes
glen_a_smith
 
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
Git and GitHub Workshop of GDG on Campus UNSTPB
AmaraCostachiu
 
Git and GitHub Presentation of GDG on Campus UNSTPB
AmaraCostachiu
 
Untangling fall2017 week2
Derek Jacoby
 
Untangling fall2017 week2_try2
Derek Jacoby
 
Contributing to github is for everyone
Matt Heusser
 
11 git version control
Wasim Alatrash
 
Git Repository for Developers working in Various Locations
Ganesh Bhosale
 
Nina Zakharenko - Introduction to Git - Start SLC 2015
Nina Zakharenko
 
Ad

More from Paal Ringstad (7)

PDF
Command cheatsheets windows
Paal Ringstad
 
PDF
Command cheatsheets mac
Paal Ringstad
 
PDF
Ruby for Beginners
Paal Ringstad
 
PDF
JS - ES6 Javascript for Beginners
Paal Ringstad
 
PDF
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
PDF
Le Wagon Australia Workshop
Paal Ringstad
 
PDF
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
Command cheatsheets windows
Paal Ringstad
 
Command cheatsheets mac
Paal Ringstad
 
Ruby for Beginners
Paal Ringstad
 
JS - ES6 Javascript for Beginners
Paal Ringstad
 
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
Le Wagon Australia Workshop
Paal Ringstad
 
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
Ad

Recently uploaded (20)

PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Python basic programing language for automation
DanialHabibi2
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 

Git & Github Workshop - Le Wagon Melbourne

  • 1. Git & GitHub for beginners 🚀 @paal_ringstad
  • 2. INTRO TIME 🎉 1. What brought you here tonight 2. One passion of yours 3. Your lovely name
  • 7. Git local commands: initialising $ git config --global user.name “your name” $ git config --global user.email “your email” $ git init
  • 11. Terminal commands: basics $ pwd $ ls $ cd project_name $ cd .. $ mkdir project_name $ touch file_name
  • 14. Git local commands: commit $ git status $ git diff $ git add file_name $ git commit -m “a meaningful message” $ git log
  • 18. $ git branch branch_name $ git checkout branch_name $ git diff master branch_name $ git merge branch_name $ git branch -d branch_name git local commands: branching
  • 21. git remote commands $ git remote -v $ git clone link (HTTPS) $ git push origin <branch_name> $ git pull origin <branch_name> +
  • 23. Please accept my pull request PULL REQUESTS
  • 24. Challenges 💪 The following slides are challenges to solve with your workshop buddy (pair programming).
  • 25. Part 1 - Git Using git via the command line to create a new project and version it
  • 26. challenge 1 Open your terminal. Using the command line, create a new folder on your Desktop. Jump into this newly- created folder, then create a new HTML file.The convention is to call this file “index.html”. How you do know the file was successfully created?
  • 27. challenge 2 If not done already, set your identity in git. Then initialise git inside the current folder. Make a first commit. By convention, the commit message for the first commit is: “initial commit”
  • 28. challenge 3 Drag and drop the HMTL file in your text / code editor (Sublime Text). Then write some stuff in it. Finally, save the file! How do you review what changed in the HTML file using git? Make a new commit to explain what changed.
  • 29. challenge 4 Create a new branch and jump onto that branch. How do you know how many branches there are in the project? How do you know which branch you are on?
  • 30. challenge 5 Make some changes to the HTML file again. Save it! Commit these changes onto the branch. Go back to the master branch. What do you notice in your HTML file?
  • 31. challenge 6 Merge your branch onto master, then delete the branch your previously created so that you don’t have already used branches lagging behind. Again, what do you notice in your HTML file?
  • 32. challenge 7 Using terminal commands, exit your current repository and go back to the Desktop repository.
  • 33. Part 2 - Github Using git along with GitHub to collaborate on an existing project online.
  • 34. challenge 8 Find out what your Github username is. Then write it down in the comment section of the Meetup page of this event (where I shared the link of these slides). Let me know when it’s done, I’ll add you to the project on GitHub. 🙂
  • 35. challenge 9 Click on this link to accept my invitation to the GitHub repository: http://bit.ly/wagonmelgit. You’re now a collaborator of this repository and have push and pull access. +
  • 36. challenge 10 Clone a copy of this repository using the HTTPS link: http://bit.ly/gitgit1 - Then jump into that repository. For your information, cloning a project from Github automatically initialises git. +
  • 37. challenge 11 Create a new branch, then update the HTML file according to the instructions in it and save it. Finally, commit the changes on that branch. +
  • 38. challenge 12 How do you list the remote repositories linked to your project? You need to find Github’s nickname to be able to push your branch there. Using git, push your branch to GitHub. +
  • 39. final challenge 🎉 Go to the repository page on Github: https://github.com/twinturtle42/github_lewagonMEL Open a Pull Request for me to review and let me know when it’s done 🙂 +
  • 40. congrats 😎 If your Pull Request got accepted, your changes are added to the codebase and available online forever! https://charlymartin.github.io/github_workshop/
  • 41. Le Wagon brings technical skills to creative people
  • 42. 9 weeks | 300+ challenges | 45+ lectures Custom tools & pedagogy
  • 43. Program outline Ruby, command line & git Software engineering Database & SQL HTML, CSS, JavaScript Rails, Heroku Github flow
  • 44. Best bootcamp in the world
  • 46. Outcomes 1. Interact with computer via the command line 2. Tell the difference between Git & Github 3. Collaborate on an open source project