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)

PDF
Git Series. Episode 3. Git Flow and Github-Flow
Mikhail Melnik
 
KEY
Introduction To Git
Arnaud Seilles
 
PPTX
Git Lab Introduction
Krunal Doshi
 
PPTX
Introduction to Git/Github - A beginner's guide
Rohit Arora
 
PDF
Git training v10
Skander Hamza
 
KEY
Introduction to Git
Lukas Fittl
 
PPTX
Git 101 for Beginners
Anurag Upadhaya
 
PDF
Git Version Control System
KMS Technology
 
PPTX
GitLab.pptx
LeoulZewelde1
 
PDF
Git (Internals)
Sabin Bhatta
 
PDF
Github - Git Training Slides: Foundations
Lee Hanxue
 
PDF
Introducing GitLab (September 2018)
Noa Harel
 
PDF
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
Edureka!
 
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
PPTX
Git hub ppt presentation
AyanaRukasar
 
PPTX
Git One Day Training Notes
glen_a_smith
 
PPTX
Git and github
Sayantika Banik
 
PDF
Git basics
GHARSALLAH Mohamed
 
PDF
Learning git
Sid Anand
 
Git Series. Episode 3. Git Flow and Github-Flow
Mikhail Melnik
 
Introduction To Git
Arnaud Seilles
 
Git Lab Introduction
Krunal Doshi
 
Introduction to Git/Github - A beginner's guide
Rohit Arora
 
Git training v10
Skander Hamza
 
Introduction to Git
Lukas Fittl
 
Git 101 for Beginners
Anurag Upadhaya
 
Git Version Control System
KMS Technology
 
GitLab.pptx
LeoulZewelde1
 
Git (Internals)
Sabin Bhatta
 
Github - Git Training Slides: Foundations
Lee Hanxue
 
Introducing GitLab (September 2018)
Noa Harel
 
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
Edureka!
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
Git hub ppt presentation
AyanaRukasar
 
Git One Day Training Notes
glen_a_smith
 
Git and github
Sayantika Banik
 
Git basics
GHARSALLAH Mohamed
 
Learning git
Sid Anand
 

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
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
Getting started With GIT
GhadiAlGhosh
 
PDF
16 Git
Hadley Wickham
 
PPTX
tech winter break workshop on git &git hub.pptx
ashishraulin
 
PDF
Learning Git and GitHub - BIT GDSC.pdf
Jayprakash677449
 
PPTX
Introduction to git and Github
Wycliff1
 
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
 
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
 
Getting started With GIT
GhadiAlGhosh
 
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Learning Git and GitHub - BIT GDSC.pdf
Jayprakash677449
 
Introduction to git and Github
Wycliff1
 
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
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PPTX
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 

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.