SlideShare a Scribd company logo
1 of 46
Download to read offline
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
Terminal commands: basics
$ pwd
$ ls
$ cd project_name
$ cd ..
$ mkdir project_name
$ touch file_name
Commit
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

Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger
 
Git and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperGit and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperJohn Stevenson
 
Introduction to Git / Github
Introduction to Git / GithubIntroduction to Git / Github
Introduction to Git / GithubPaige Bailey
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Omar Fathy
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHubUri Goldstein
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash courseMireia Sangalo
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHubNishan Bose
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil AliAmilAli1
 
Quick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & GitHubQuick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & GitHubAshoka R K T
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with gitgdgjss
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open SourceLorna Mitchell
 
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargNisha Garg
 
Contributing to Open Source #Hacktoberfest
Contributing to Open Source #HacktoberfestContributing to Open Source #Hacktoberfest
Contributing to Open Source #HacktoberfestCheah Eng Soon
 

What's hot (20)

Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
 
Git and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern DeveloperGit and github - Verson Control for the Modern Developer
Git and github - Verson Control for the Modern Developer
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Introduction to Git / Github
Introduction to Git / GithubIntroduction to Git / Github
Introduction to Git / Github
 
Github
GithubGithub
Github
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Hacktoberfest slides
Hacktoberfest slidesHacktoberfest slides
Hacktoberfest slides
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
 
Quick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & GitHubQuick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & GitHub
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
 
Contributing to Open Source #Hacktoberfest
Contributing to Open Source #HacktoberfestContributing to Open Source #Hacktoberfest
Contributing to Open Source #Hacktoberfest
 
Git & GitHub for Beginners
Git & GitHub for BeginnersGit & GitHub for Beginners
Git & GitHub for Beginners
 

Similar to Git & Github Workshop - Le Wagon Melbourne

Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control SystemVictor Wong
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfAmarnadh36
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfbadrfathallah2
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution processSyed Armani
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Processopenstackindia
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for ArtistsDavid Newbury
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptxHitesh670643
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyoneMatt Heusser
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdfTilton2
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideRaghavendraVattikuti1
 

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

16 Git
16 Git16 Git
16 Git
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
Git presentation
Git presentationGit presentation
Git presentation
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
 
Git/GitHub
Git/GitHubGit/GitHub
Git/GitHub
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for Artists
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Contributing to github is for everyone
Contributing to github is for everyoneContributing to github is for everyone
Contributing to github is for everyone
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
 
Git Hub Platform
Git Hub PlatformGit Hub Platform
Git Hub Platform
 
Intro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucketIntro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucket
 

More from Paal Ringstad

Command cheatsheets windows
Command cheatsheets windowsCommand cheatsheets windows
Command cheatsheets windowsPaal Ringstad
 
Command cheatsheets mac
Command cheatsheets macCommand cheatsheets mac
Command cheatsheets macPaal Ringstad
 
JS - ES6 Javascript for Beginners
JS - ES6 Javascript for BeginnersJS - ES6 Javascript for Beginners
JS - ES6 Javascript for BeginnersPaal Ringstad
 
HTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampHTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampPaal Ringstad
 
Le Wagon Australia Workshop
Le Wagon Australia WorkshopLe Wagon Australia Workshop
Le Wagon Australia WorkshopPaal Ringstad
 
HTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampHTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampPaal Ringstad
 

More from Paal Ringstad (7)

Command cheatsheets windows
Command cheatsheets windowsCommand cheatsheets windows
Command cheatsheets windows
 
Command cheatsheets mac
Command cheatsheets macCommand cheatsheets mac
Command cheatsheets mac
 
Ruby for Beginners
Ruby for BeginnersRuby for Beginners
Ruby for Beginners
 
JS - ES6 Javascript for Beginners
JS - ES6 Javascript for BeginnersJS - ES6 Javascript for Beginners
JS - ES6 Javascript for Beginners
 
HTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampHTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon Bootcamp
 
Le Wagon Australia Workshop
Le Wagon Australia WorkshopLe Wagon Australia Workshop
Le Wagon Australia Workshop
 
HTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon BootcampHTML & CSS - Le Wagon Bootcamp
HTML & CSS - Le Wagon Bootcamp
 

Recently uploaded

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Recently uploaded (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

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
  • 10.
  • 11. Terminal commands: basics $ pwd $ ls $ cd project_name $ cd .. $ mkdir project_name $ touch file_name
  • 13.
  • 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