git and github getting started - experts live netherlands · 2019-06-20 · devops & automation...
TRANSCRIPT
![Page 1: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/1.jpg)
DEVOPS &
AUTOMATION
Git and GitHub getting
started
Rick Van Rousselt
![Page 2: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/2.jpg)
DEVOPS &
AUTOMATION
Rick Van Rousselt
CTO Advantive Belgium
Office Apps and Services MVP
BIWUG Board Member
![Page 3: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/3.jpg)
What is Git
![Page 4: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/4.jpg)
DEVOPS &
AUTOMATION What is Git
Started in 2005
Created by Linus Torvald to aid in Linux kernel
development
![Page 5: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/5.jpg)
DEVOPS &
AUTOMATION Distributed source control
Peer-to-peer approach
• Every user has a full version of the code + all the history
You don’t need to be connected to the internet
• A central server is only required when sharing changes
Working copies function as remote backups
Faster because its local
![Page 6: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/6.jpg)
DEVOPS &
AUTOMATION
DEVOPS &
AUTOMATION
DEMO
![Page 7: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/7.jpg)
DEVOPS &
AUTOMATION Key Concepts : Snapshots
The way git keeps track of the history
Essentially records what all your files look like at a
given point in time
Have the ability to go back and visit any snapshot
![Page 8: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/8.jpg)
DEVOPS &
AUTOMATION Key Concepts : Commit
The act of creating a snapshot
A project is made up of a bunch of commits
Contains 3 key pieces of information
• Information about how the files changed
• A reference to the commit that came before it
• A hash code name
![Page 9: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/9.jpg)
DEVOPS &
AUTOMATION Key Concepts : Repositories
Or a Repo for short
A collection of all the files and the history of those files
• All your commits
The act of copying a repo from a remote server is called
cloning
![Page 10: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/10.jpg)
DEVOPS &
AUTOMATION Remote repository
Not required. Just makes it easy
This is where GitHub comes into the picture
![Page 11: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/11.jpg)
DEVOPS &
AUTOMATION
Version control
• Push
• Pull
• Commit
Makes collaboration easier
• Issues
• Pull requests (merge requests) stands for :
asking somebody to pull your changes down
locally
Largest web-based git repository hosting service
Founded in 2008
Recently acquired by Microsoft
![Page 12: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/12.jpg)
DEVOPS &
AUTOMATION
DEVOPS &
AUTOMATION
DEMO
![Page 13: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/13.jpg)
DEVOPS &
AUTOMATION
GitHub workflow
![Page 14: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/14.jpg)
DEVOPS &
AUTOMATION GitHub workflow
1. Create a branch
• Branching is very different to for instance TFS => we are
not creating a new directory and copying code there
• Just a pointer => looks exactly like the master version
![Page 15: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/15.jpg)
DEVOPS &
AUTOMATION GitHub workflow
2. Commit
• Snapshot
• Make it small
![Page 16: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/16.jpg)
DEVOPS &
AUTOMATION GitHub workflow
3. Open a Pull Request
• Conversation about the code you checked in
![Page 17: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/17.jpg)
DEVOPS &
AUTOMATION GitHub workflow
Make more commits if necessary
![Page 18: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/18.jpg)
DEVOPS &
AUTOMATION GitHub workflow
5. (optional) Deploy from branch if you
want to test
Or merge back to master
![Page 19: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/19.jpg)
DEVOPS &
AUTOMATION
Git workflow
![Page 20: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/20.jpg)
DEVOPS &
AUTOMATION
![Page 21: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/21.jpg)
DEVOPS &
AUTOMATION
![Page 22: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/22.jpg)
DEVOPS &
AUTOMATION
![Page 23: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/23.jpg)
DEVOPS &
AUTOMATION
![Page 24: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/24.jpg)
DEVOPS &
AUTOMATION
DEVOPS &
AUTOMATION
GitHub in the browser
![Page 25: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/25.jpg)
DEVOPS &
AUTOMATION
DEVOPS &
AUTOMATION
GitHub in Visual Studio
![Page 26: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/26.jpg)
DEVOPS &
AUTOMATION
DEVOPS &
AUTOMATION
Using GitHub for your
website
![Page 27: Git and GitHub getting started - Experts Live Netherlands · 2019-06-20 · DEVOPS & AUTOMATION Git and GitHub getting started Rick Van Rousselt. DEVOPS & AUTOMATION Rick Van Rousselt](https://reader036.vdocument.in/reader036/viewer/2022062604/5fb83953df9a3259956fc54f/html5/thumbnails/27.jpg)
DEVOPS &
AUTOMATION