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

PDF
Github - Le Wagon Melbourne
PPTX
Introduction to git and github
PDF
Intro to Git and GitHub
PPTX
Beginner's guide to git and github
PDF
Git 101 Workshop
PPTX
How to install and use git
PPTX
PDF
Inside GitHub
 
Github - Le Wagon Melbourne
Introduction to git and github
Intro to Git and GitHub
Beginner's guide to git and github
Git 101 Workshop
How to install and use git
Inside GitHub
 

What's hot (20)

KEY
Matt Gauger - Git & Github web414 December 2010
PPTX
Git tutorial
PDF
Git and github - Verson Control for the Modern Developer
PPTX
GitHub Basics - Derek Bable
PPTX
Introduction to Git / Github
PPTX
PPTX
Introduction to Git and GitHub Part 1
PPTX
Intro to Git and GitHub
PPTX
Hacktoberfest slides
PPTX
Extra bit with git
PDF
Git and GitHub crash course
PDF
Introduction to GitHub
PDF
Github Case Study By Amil Ali
PPTX
Quick and easy way to get started with Git & GitHub
PDF
Advance workshop on git
PPTX
Extra bit with git
PDF
Git, GitHub and Open Source
PPTX
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
PDF
Contributing to Open Source #Hacktoberfest
PDF
Git & GitHub for Beginners
Matt Gauger - Git & Github web414 December 2010
Git tutorial
Git and github - Verson Control for the Modern Developer
GitHub Basics - Derek Bable
Introduction to Git / Github
Introduction to Git and GitHub Part 1
Intro to Git and GitHub
Hacktoberfest slides
Extra bit with git
Git and GitHub crash course
Introduction to GitHub
Github Case Study By Amil Ali
Quick and easy way to get started with Git & GitHub
Advance workshop on git
Extra bit with git
Git, GitHub and Open Source
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Contributing to Open Source #Hacktoberfest
Git & GitHub for Beginners
Ad

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

PDF
PDF
Git Init (Introduction to Git)
PDF
Version Control Systems Software Engineering
KEY
Git Distributed Version Control System
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PPTX
Git and GitHub workshop of GDG on Campus UNSTPB
PDF
introductiontogitandgithub-120702044048-phpapp01.pdf
ODP
Git presentation
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
PPTX
tech winter break workshop on git &git hub.pptx
PPTX
this is chpitre 2 of my formation in the kaggle description
ODP
OpenStack Contribution Process
ODP
Openstack contribution process
PDF
Git/GitHub
PDF
Introduction to Git for Artists
PPTX
Git and Github.pptx
PPTX
Git & Github
Git Init (Introduction to Git)
Version Control Systems Software Engineering
Git Distributed Version Control System
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Git and GitHub workshop of GDG on Campus UNSTPB
introductiontogitandgithub-120702044048-phpapp01.pdf
Git presentation
Git and GitHub Workshop of GDG on Campus UNSTPB
Git and GitHub Workshop of GDG on Campus UNSTPB
Git and GitHub Presentation of GDG on Campus UNSTPB
tech winter break workshop on git &git hub.pptx
this is chpitre 2 of my formation in the kaggle description
OpenStack Contribution Process
Openstack contribution process
Git/GitHub
Introduction to Git for Artists
Git and Github.pptx
Git & Github
Ad

More from Paal Ringstad (7)

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

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
MIND Revenue Release Quarter 2 2025 Press Release
Network Security Unit 5.pdf for BCA BBA.
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
MYSQL Presentation for SQL database connectivity

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