SlideShare a Scribd company logo
1
Version Control
Version Control
with Git & Github on VSCode
with Git & Github on VSCode
2
What we set to accomplish
What we set to accomplish
What is Version Control?
–
Git and GitHub -- What are they?
–
Setting up Git for your Projects.
–
Git & GitHub on VSCode
–
Extra Material to look out for *
–
3
⇥
⇥
Let's Cook
4
Version Control
Version Control
5
Version control
Version control, also
known as source control
source control, is
the practice of tracking and
managing changes to
software code. Version
control systems are
software tools that help
software teams manage
changes to source code
over time.
As development
environments have
accelerated, version control
systems help software
teams work faster and
smarter. They are especially
useful for teams since they
help them to reduce
development time and
increase successful
deployments.
6
Concept of Version
Concept of Version
control and why it is
control and why it is
needed?
needed?
Version Control: Git allows you to
track changes to your code over time,
so you can always go back to a
previous version if something goes
wrong.
1.
Collaboration: GitHub makes it easy
for multiple people to work on the
same project at the same time. It also
allows you to easily review each
other’s code and make sure everyone
is on the same page.
2.
Backup: By pushing your code to
GitHub, you’re creating an off-site
backup of your work in case
something happens to your local
machine.
1.
Open Source Projects: GitHub is a
great place for open source projects,
as it makes it easy for anyone to
contribute and collaborate on the
project.
2.
Documentation: You can use GitHub’s
wiki feature to create documentation
for your project, which makes it easier
for new contributors to get up and
running quickly.
3.
7
Git & Github
Git & Github
8
Let me Answer your Question First.
Let me Answer your Question First.
Git and GitHub are not the same things.
Git is an open-source, version control tool created in 2005
by developers working on the Linux operating system;
GitHub is a company founded in 2008 that makes tools
which integrate with git.
You do not need GitHub to use Git, but you cannot use
GitHub without using git. There are many other
alternatives to GitHub, such as GitLab, BitBucket, and many
more.
9
Se!ing up Git on
Se!ing up Git on
your Computer
your Computer
10
Se!ing up git on your computer
Se!ing up git on your computer
Step 0:
Step 0: Install git and create a GitHub account
The first two things you'll want to do are install
git and create a free GitHub account.
You can head over to:
Git Website
Github Website
11
Con!guring Git on your local machine.
Con!guring Git on your local machine.
Git Configurations
Git Configurations (must have a GitHub account first)
git config --global user.email
"email@youremail.com"
git config --global user.username "username"
These commands above have to be executed in your
git/Bash or Unix terminal if you are using MacOS or linux.
12
13
Step 1:
Step 1: Se!ing up a repository
Se!ing up a repository
When creating a new project on your local
machine using git, you'll first create a new
repository (or often, 'repo,' for short).
To use Git we'll be using the terminal. If you
don't have much experience with the terminal
and basic commands, check out this tutorial
(provided at the end of the slides)
14
To begin, open up a terminal and move to where
you want to place the project on your local
machine using the cd (change directory)
command. For example, if you have a 'projects'
folder on your desktop, you'd do something like:
pro@0xunibit ➜ ~ cd
Documents/developer/projects/
But we will not be doing this for the sake of
newbies.
15
The equivalence of executing these commands is just to
set up a git folder or "repository".
So we can reduce this to just making folders for our project
and initialising Git or any version control system.
16
Git and Version
Git and Version
Control on
Control on
VSCode
VSCode
17
Source
Source
Control
Control
Step 2:
Step 2: Adding files and
Managing them
18
---
---
(Water Break. Time for some
Demonstrations)
19
Adding your local Repositories
Adding your local Repositories
to
to
GITHUB
GITHUB
20
21
22
23
Extra Gari? Yes
Extra Gari? Yes
Please
Please
24
Pull Requests
Mastering Navigation on Github
Checking out other Git Hosting Services
Exploring how Git works (If you are that curious enough)
References to Check out:
reference one
–
reference two
–
reference three
–
Ad

More Related Content

Similar to Beginner Workshop for Student Developers - Tratech-presentation.pdf (20)

Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
JasleenSondhi
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1
 
16 Git
16 Git16 Git
16 Git
Hadley Wickham
 
Github 101 An Adventurer's Guide To Open Source
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open Source
Prachitibhukan
 
Git & Github
Git & GithubGit & Github
Git & Github
Aman Lalpuria
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
prostackacademy
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
Martin Jinoch
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
Nhi Nguyen
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
SahilSonar4
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
Nyros Technologies
 
Brush up on using github
Brush up on using githubBrush up on using github
Brush up on using github
Sebin Benjamin
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Version control
Version controlVersion control
Version control
Giovanni Marco Dall'Olio
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
Himanshu Agrawal
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginners
DeepikaRana30
 
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
Rolands Krumbergs
 
Git step by step
Git step by stepGit step by step
Git step by step
Mithun Ghose
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
Gaurav Wable
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
GIT & Github introduction for beginners
GIT & Github introduction for  beginnersGIT & Github introduction for  beginners
GIT & Github introduction for beginners
riteshsingh3651
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
JasleenSondhi
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1
 
Github 101 An Adventurer's Guide To Open Source
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open Source
Prachitibhukan
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
Martin Jinoch
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
Nhi Nguyen
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
SahilSonar4
 
Brush up on using github
Brush up on using githubBrush up on using github
Brush up on using github
Sebin Benjamin
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginners
DeepikaRana30
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
GIT & Github introduction for beginners
GIT & Github introduction for  beginnersGIT & Github introduction for  beginners
GIT & Github introduction for beginners
riteshsingh3651
 

Recently uploaded (20)

RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
Kamal Acharya
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Unit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatioUnit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
vlsi digital circuits full power point presentation
vlsi digital circuits full power point presentationvlsi digital circuits full power point presentation
vlsi digital circuits full power point presentation
DrSunitaPatilUgaleKK
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Mirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdfMirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdf
topitodosmasdos
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
aset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edgeaset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edge
alilamisse
 
Upstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptxUpstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptx
KshitijJayswal2
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis""Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
Infopitaara
 
Basic Principles for Electronics Students
Basic Principles for Electronics StudentsBasic Principles for Electronics Students
Basic Principles for Electronics Students
cbdbizdev04
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.
Kamal Acharya
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptxFourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
Fourth Semester BE CSE BCS401 ADA Module 3 PPT.pptx
VENKATESHBHAT25
 
Unit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatioUnit III.pptx IT3401 web essentials presentatio
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
vlsi digital circuits full power point presentation
vlsi digital circuits full power point presentationvlsi digital circuits full power point presentation
vlsi digital circuits full power point presentation
DrSunitaPatilUgaleKK
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Mirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdfMirada a 12 proyectos desarrollados con BIM.pdf
Mirada a 12 proyectos desarrollados con BIM.pdf
topitodosmasdos
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
aset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edgeaset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edge
alilamisse
 
Upstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptxUpstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptx
KshitijJayswal2
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis""Heaters in Power Plants: Types, Functions, and Performance Analysis"
"Heaters in Power Plants: Types, Functions, and Performance Analysis"
Infopitaara
 
Basic Principles for Electronics Students
Basic Principles for Electronics StudentsBasic Principles for Electronics Students
Basic Principles for Electronics Students
cbdbizdev04
 
Ad

Beginner Workshop for Student Developers - Tratech-presentation.pdf

  • 1. 1 Version Control Version Control with Git & Github on VSCode with Git & Github on VSCode
  • 2. 2 What we set to accomplish What we set to accomplish What is Version Control? – Git and GitHub -- What are they? – Setting up Git for your Projects. – Git & GitHub on VSCode – Extra Material to look out for * –
  • 5. 5 Version control Version control, also known as source control source control, is the practice of tracking and managing changes to software code. Version control systems are software tools that help software teams manage changes to source code over time. As development environments have accelerated, version control systems help software teams work faster and smarter. They are especially useful for teams since they help them to reduce development time and increase successful deployments.
  • 6. 6 Concept of Version Concept of Version control and why it is control and why it is needed? needed? Version Control: Git allows you to track changes to your code over time, so you can always go back to a previous version if something goes wrong. 1. Collaboration: GitHub makes it easy for multiple people to work on the same project at the same time. It also allows you to easily review each other’s code and make sure everyone is on the same page. 2. Backup: By pushing your code to GitHub, you’re creating an off-site backup of your work in case something happens to your local machine. 1. Open Source Projects: GitHub is a great place for open source projects, as it makes it easy for anyone to contribute and collaborate on the project. 2. Documentation: You can use GitHub’s wiki feature to create documentation for your project, which makes it easier for new contributors to get up and running quickly. 3.
  • 8. 8 Let me Answer your Question First. Let me Answer your Question First. Git and GitHub are not the same things. Git is an open-source, version control tool created in 2005 by developers working on the Linux operating system; GitHub is a company founded in 2008 that makes tools which integrate with git. You do not need GitHub to use Git, but you cannot use GitHub without using git. There are many other alternatives to GitHub, such as GitLab, BitBucket, and many more.
  • 9. 9 Se!ing up Git on Se!ing up Git on your Computer your Computer
  • 10. 10 Se!ing up git on your computer Se!ing up git on your computer Step 0: Step 0: Install git and create a GitHub account The first two things you'll want to do are install git and create a free GitHub account. You can head over to: Git Website Github Website
  • 11. 11 Con!guring Git on your local machine. Con!guring Git on your local machine. Git Configurations Git Configurations (must have a GitHub account first) git config --global user.email "[email protected]" git config --global user.username "username" These commands above have to be executed in your git/Bash or Unix terminal if you are using MacOS or linux.
  • 12. 12
  • 13. 13 Step 1: Step 1: Se!ing up a repository Se!ing up a repository When creating a new project on your local machine using git, you'll first create a new repository (or often, 'repo,' for short). To use Git we'll be using the terminal. If you don't have much experience with the terminal and basic commands, check out this tutorial (provided at the end of the slides)
  • 14. 14 To begin, open up a terminal and move to where you want to place the project on your local machine using the cd (change directory) command. For example, if you have a 'projects' folder on your desktop, you'd do something like: pro@0xunibit ➜ ~ cd Documents/developer/projects/ But we will not be doing this for the sake of newbies.
  • 15. 15 The equivalence of executing these commands is just to set up a git folder or "repository". So we can reduce this to just making folders for our project and initialising Git or any version control system.
  • 16. 16 Git and Version Git and Version Control on Control on VSCode VSCode
  • 17. 17 Source Source Control Control Step 2: Step 2: Adding files and Managing them
  • 18. 18 --- --- (Water Break. Time for some Demonstrations)
  • 19. 19 Adding your local Repositories Adding your local Repositories to to GITHUB GITHUB
  • 20. 20
  • 21. 21
  • 22. 22
  • 23. 23 Extra Gari? Yes Extra Gari? Yes Please Please
  • 24. 24 Pull Requests Mastering Navigation on Github Checking out other Git Hosting Services Exploring how Git works (If you are that curious enough) References to Check out: reference one – reference two – reference three –