SlideShare a Scribd company logo
Git, GitHub,How to host your website using
github
• Lesson 1: Version Control
• Lesson 2: Git
• Lesson 3: GitHub
• Lesson 4: How to host your website using github
Club Service Outline
Monday, January 9, 2016
2
• What is version control?
• Why we need version control
• Types of version control
• Popular version control systems
Version Control: Objectives
Monday, January 9, 2016
3
“An application that allows you to record changes to your codebase in a
structured and controlled fashion.”
What is version control?
Monday, January 9, 2016
4
Makes it way easier to undo errors / roll back to earlier versions of code
Why we need Version Control?
Monday, January 9, 2016
5
• Every Client can have a copy of repository to
work offline
• Eg. Git
Distributed Version Control (3rd Generation)
• One Repository is shared within all Client
• Eg. Telnet
Traditional Version Control (2nd Generation)
Types of version control systems
Monday, January 9, 2016
6
• SVN – SubVersioN
• CVS - Concurrent Version System
• Git
• Mercurial
• Bazaar
• LibreSource
Popular version control systems:
Monday, January 9, 2016
7
• What the heck is Git?
• Git Sample Example
• Git Installation
• Git Commands and Practices
Git: Objectives
Monday, January 9, 2016
8
• Git is a version control system.
• It is a best Distributed VCS example.
• Originally developed by Linus Torvalds for the
development of the Linux Kernel in 2005
• Key Points:
▫ Open source, free
▫ Focus on Speed and efficiency
▫ Branching, automatic merging
What is Git?
Monday, January 9, 2016
9
• For WINDOWS:
http://git-scm.com/
• For LINUX:
~(sudo) apt-get install git
Git Installation
Monday, January 9, 2016
10
• Repository : A storage place where all versions of a project are stored.
(local repository refers to a repository on your computer and remote
repository refers to a repository on a server like github.com)
• Cloning : To get a copy of a remote repository to your local computer.
• Fetching : To get latest changes from remote repository without merging
• Pushing : To commit the changes to the remote repository
Git Glossary
Monday, January 9, 2016
11
• Pulling : To get latest changes from remote repository and merge them with
your local repository.
• Commit : To save changes in the local repository
• Checking out : means to get a snapshot of a file or a set of files in a specific
version to your working directory.
• Untracked basically means that Git sees a file you didn’t have in the previous
snapshot (commit);
Git Glossary
Monday, January 9, 2016
12
• Working directory: is a single checkout of one version of the project. These
files are pulled out of the compressed database in the .git directory and
placed on disk for you to use or modify.
• HEAD: refers to a pointer pointing to the currently checked out commit.
Git Glossary
Monday, January 9, 2016
13
• git init
• git help <command>
• git status
• git add
• git commit –m “message”
• git log
• git diff
• git branch <branch-name>
• git checkout <branch-name>
• git merge <branch-name>
Git Commands
Monday, January 9, 2016
14
• What is GitHub?
• Why GitHub?
• Important Links ..
GitHub : Objectives
Monday, January 9, 2016
15
• In simple words GitHub is a code sharing and collaborating platform.
• It’s a Git repository hosting service… but it adds many of its own
features.
• While Git is a command line tool, GitHub provides a web-based
graphical interface
What is GitHub?
Monday, January 9, 2016
16
• By default, all projects are public and free. In you want a private project,
then you have to pay.
• You can clone any public repository, follow projects and developers,
post comments.
Why GitHub
Monday, January 9, 2016
17
• Official Git site
http://git-scm.com
• Git commands
http://gitref.org/basic
• GitHub site
http://github.com
https://github.com/CourseReps/ECEN489-Fall2015/wiki/Git
Important Links:
Monday, January 9, 2016
18
Monday, January 9, 2016
19
1. Create new repository by clicking on new repository button
2. Give repository name as “your_username.github.io”. For e.g. In my case as shown
3. Click on create repository.
How to host your website using github
Monday, January 9, 2016
20
4. Now go to directory where you want to place your website files. For e.g. say
D:GITHUBMYWEBSITE and right click and select open “Git Bash Here”
5. Give command : git clone https://github.com/<username>/<username>.github.io
5. This will create folder of <username>.github.io. Add all files(.html,css,js) for
your website into this folder
How to host your website using github(continued)
Monday, January 9, 2016
21
How to host your website using github(continued)
6. After adding files give command:
> git add .
> git commit –m “first commit”
> git push origin master
7. That’s it..!! Now go to url
“https://<username>.github.io”
Monday, January 9, 2016
22
Thank You!

More Related Content

What's hot (20)

PPTX
Github
piyush khadse
 
PDF
Git & GitHub WorkShop
SheilaJimenezMorejon
 
PPTX
Introduction to git & GitHub
Poornachandrakashi
 
PPTX
Github basics
Radoslav Georgiev
 
PPTX
Git One Day Training Notes
glen_a_smith
 
PPTX
Introduction git
Dian Sigit Prastowo
 
PPTX
Git Lab Introduction
Krunal Doshi
 
PDF
Git 101: Git and GitHub for Beginners
HubSpot
 
PPTX
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
PDF
A brief introduction to version control systems
Tim Staley
 
PPTX
Intro to git and git hub
Venkat Malladi
 
PDF
Git Version Control System
KMS Technology
 
PPTX
Bitbucket Devops PPT.pptx
XIE2020Students
 
PPTX
A prentation on github
Veronica Ojochona Michael (MCP)
 
PDF
Version Control & Git
Craig Smith
 
PDF
Git and github 101
Senthilkumar Gopal
 
PDF
Github - Git Training Slides: Foundations
Lee Hanxue
 
PPTX
Git 101 for Beginners
Anurag Upadhaya
 
ODP
Git vs svn
Suman Mukherjee
 
PPTX
Version control
visual28
 
Git & GitHub WorkShop
SheilaJimenezMorejon
 
Introduction to git & GitHub
Poornachandrakashi
 
Github basics
Radoslav Georgiev
 
Git One Day Training Notes
glen_a_smith
 
Introduction git
Dian Sigit Prastowo
 
Git Lab Introduction
Krunal Doshi
 
Git 101: Git and GitHub for Beginners
HubSpot
 
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
 
A brief introduction to version control systems
Tim Staley
 
Intro to git and git hub
Venkat Malladi
 
Git Version Control System
KMS Technology
 
Bitbucket Devops PPT.pptx
XIE2020Students
 
A prentation on github
Veronica Ojochona Michael (MCP)
 
Version Control & Git
Craig Smith
 
Git and github 101
Senthilkumar Gopal
 
Github - Git Training Slides: Foundations
Lee Hanxue
 
Git 101 for Beginners
Anurag Upadhaya
 
Git vs svn
Suman Mukherjee
 
Version control
visual28
 

Similar to Git,Github,How to host using Github (20)

PPTX
Introduction to git hub
Naveen Pandey
 
PPTX
Do you git it
Hridyesh Bisht
 
PPTX
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
udaymore742
 
PPTX
Git&GitHub.pptx
KondiVenkatesh1
 
PDF
A Tutorial for GitHub.pdf
badrfathallah2
 
PDF
A Tutorial for GitHub.pdf
Amarnadh36
 
PPT
Git is a distributed version control system .
HELLOWorld889594
 
PPTX
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
PPTX
GIT & Github introduction for beginners
riteshsingh3651
 
PDF
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 
PPTX
Git and github
Sayantika Banik
 
PPTX
Introduction to git and github
Aderemi Dadepo
 
PPTX
Git learn from scratch
Mir Arif Hasan
 
PPTX
Version controll.pptx
Md. Main Uddin Rony
 
PDF
GDSC ZHCET GitHub Session.pdf
gdsczhcet
 
PDF
Version Control with Git
Luigi De Russis
 
PDF
Git basics
GHARSALLAH Mohamed
 
PDF
Getting started With GIT
GhadiAlGhosh
 
PDF
16 Git
Hadley Wickham
 
PPTX
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Introduction to git hub
Naveen Pandey
 
Do you git it
Hridyesh Bisht
 
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
udaymore742
 
Git&GitHub.pptx
KondiVenkatesh1
 
A Tutorial for GitHub.pdf
badrfathallah2
 
A Tutorial for GitHub.pdf
Amarnadh36
 
Git is a distributed version control system .
HELLOWorld889594
 
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
GIT & Github introduction for beginners
riteshsingh3651
 
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 
Git and github
Sayantika Banik
 
Introduction to git and github
Aderemi Dadepo
 
Git learn from scratch
Mir Arif Hasan
 
Version controll.pptx
Md. Main Uddin Rony
 
GDSC ZHCET GitHub Session.pdf
gdsczhcet
 
Version Control with Git
Luigi De Russis
 
Git basics
GHARSALLAH Mohamed
 
Getting started With GIT
GhadiAlGhosh
 
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Ad

More from Sujata Regoti (9)

PDF
Social media connecting or disconnecting
Sujata Regoti
 
PPTX
Image retrieval
Sujata Regoti
 
PPTX
Key management
Sujata Regoti
 
PPTX
Web mining tools
Sujata Regoti
 
PPTX
Servlet and jsp interview questions
Sujata Regoti
 
PPTX
Technical aptitude test 2 CSE
Sujata Regoti
 
PPTX
Technical aptitude Test 1 CSE
Sujata Regoti
 
PPTX
Big Data
Sujata Regoti
 
PPTX
Inflation measuring
Sujata Regoti
 
Social media connecting or disconnecting
Sujata Regoti
 
Image retrieval
Sujata Regoti
 
Key management
Sujata Regoti
 
Web mining tools
Sujata Regoti
 
Servlet and jsp interview questions
Sujata Regoti
 
Technical aptitude test 2 CSE
Sujata Regoti
 
Technical aptitude Test 1 CSE
Sujata Regoti
 
Big Data
Sujata Regoti
 
Inflation measuring
Sujata Regoti
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Biography of Daniel Podor.pdf
Daniel Podor
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 

Git,Github,How to host using Github

  • 1. Git, GitHub,How to host your website using github
  • 2. • Lesson 1: Version Control • Lesson 2: Git • Lesson 3: GitHub • Lesson 4: How to host your website using github Club Service Outline Monday, January 9, 2016 2
  • 3. • What is version control? • Why we need version control • Types of version control • Popular version control systems Version Control: Objectives Monday, January 9, 2016 3
  • 4. “An application that allows you to record changes to your codebase in a structured and controlled fashion.” What is version control? Monday, January 9, 2016 4
  • 5. Makes it way easier to undo errors / roll back to earlier versions of code Why we need Version Control? Monday, January 9, 2016 5
  • 6. • Every Client can have a copy of repository to work offline • Eg. Git Distributed Version Control (3rd Generation) • One Repository is shared within all Client • Eg. Telnet Traditional Version Control (2nd Generation) Types of version control systems Monday, January 9, 2016 6
  • 7. • SVN – SubVersioN • CVS - Concurrent Version System • Git • Mercurial • Bazaar • LibreSource Popular version control systems: Monday, January 9, 2016 7
  • 8. • What the heck is Git? • Git Sample Example • Git Installation • Git Commands and Practices Git: Objectives Monday, January 9, 2016 8
  • 9. • Git is a version control system. • It is a best Distributed VCS example. • Originally developed by Linus Torvalds for the development of the Linux Kernel in 2005 • Key Points: ▫ Open source, free ▫ Focus on Speed and efficiency ▫ Branching, automatic merging What is Git? Monday, January 9, 2016 9
  • 10. • For WINDOWS: http://git-scm.com/ • For LINUX: ~(sudo) apt-get install git Git Installation Monday, January 9, 2016 10
  • 11. • Repository : A storage place where all versions of a project are stored. (local repository refers to a repository on your computer and remote repository refers to a repository on a server like github.com) • Cloning : To get a copy of a remote repository to your local computer. • Fetching : To get latest changes from remote repository without merging • Pushing : To commit the changes to the remote repository Git Glossary Monday, January 9, 2016 11
  • 12. • Pulling : To get latest changes from remote repository and merge them with your local repository. • Commit : To save changes in the local repository • Checking out : means to get a snapshot of a file or a set of files in a specific version to your working directory. • Untracked basically means that Git sees a file you didn’t have in the previous snapshot (commit); Git Glossary Monday, January 9, 2016 12
  • 13. • Working directory: is a single checkout of one version of the project. These files are pulled out of the compressed database in the .git directory and placed on disk for you to use or modify. • HEAD: refers to a pointer pointing to the currently checked out commit. Git Glossary Monday, January 9, 2016 13
  • 14. • git init • git help <command> • git status • git add • git commit –m “message” • git log • git diff • git branch <branch-name> • git checkout <branch-name> • git merge <branch-name> Git Commands Monday, January 9, 2016 14
  • 15. • What is GitHub? • Why GitHub? • Important Links .. GitHub : Objectives Monday, January 9, 2016 15
  • 16. • In simple words GitHub is a code sharing and collaborating platform. • It’s a Git repository hosting service… but it adds many of its own features. • While Git is a command line tool, GitHub provides a web-based graphical interface What is GitHub? Monday, January 9, 2016 16
  • 17. • By default, all projects are public and free. In you want a private project, then you have to pay. • You can clone any public repository, follow projects and developers, post comments. Why GitHub Monday, January 9, 2016 17
  • 18. • Official Git site http://git-scm.com • Git commands http://gitref.org/basic • GitHub site http://github.com https://github.com/CourseReps/ECEN489-Fall2015/wiki/Git Important Links: Monday, January 9, 2016 18
  • 19. Monday, January 9, 2016 19 1. Create new repository by clicking on new repository button 2. Give repository name as “your_username.github.io”. For e.g. In my case as shown 3. Click on create repository. How to host your website using github
  • 20. Monday, January 9, 2016 20 4. Now go to directory where you want to place your website files. For e.g. say D:GITHUBMYWEBSITE and right click and select open “Git Bash Here” 5. Give command : git clone https://github.com/<username>/<username>.github.io 5. This will create folder of <username>.github.io. Add all files(.html,css,js) for your website into this folder How to host your website using github(continued)
  • 21. Monday, January 9, 2016 21 How to host your website using github(continued) 6. After adding files give command: > git add . > git commit –m “first commit” > git push origin master 7. That’s it..!! Now go to url “https://<username>.github.io”
  • 22. Monday, January 9, 2016 22 Thank You!

Editor's Notes

  • #3: Lesson descriptions should be brief.
  • #4: Example objectives At the end of this lesson, you will be able to: Save files to the team Web server. Move files to different locations on the team Web server. Share files on the team Web server.