SlideShare a Scribd company logo
1 of 22
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)

Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
git and github
git and githubgit and github
git and github
 
Github basics
Github basicsGithub basics
Github basics
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git basics
Git basicsGit basics
Git basics
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
Github
GithubGithub
Github
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and Concepts
 
Github
GithubGithub
Github
 
Git workflows
Git workflowsGit workflows
Git workflows
 
Git 101
Git 101Git 101
Git 101
 
Git
GitGit
Git
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Git Series. Episode 3. Git Flow and Github-Flow
Git Series. Episode 3. Git Flow and Github-FlowGit Series. Episode 3. Git Flow and Github-Flow
Git Series. Episode 3. Git Flow and Github-Flow
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 

Similar to Git,Github,How to host using Github

Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIsTim Osborn
 
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
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubBigBlueHat
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configurationKishor Kumar
 
ePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version ControlePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version ControlGiuseppe Masetti
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Ahmed El-Arabawy
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersDeepikaRana30
 
Introduction to Git for Network Engineers
Introduction to Git for Network EngineersIntroduction to Git for Network Engineers
Introduction to Git for Network EngineersJoel W. King
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucketMedhat Dawoud
 
Bitbucket as a code server and pmt
Bitbucket as a code server and pmt Bitbucket as a code server and pmt
Bitbucket as a code server and pmt malike4u
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubKim Moir
 

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

Git_Git_Lab_1664715263.pdf
Git_Git_Lab_1664715263.pdfGit_Git_Lab_1664715263.pdf
Git_Git_Lab_1664715263.pdf
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Migrating To GitHub
Migrating To GitHub  Migrating To GitHub
Migrating To GitHub
 
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
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
ePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version ControlePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version Control
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Hacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginnersHacktoberfest 2020 - Open source for beginners
Hacktoberfest 2020 - Open source for beginners
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Git and GitHub Info Session
Git and GitHub Info SessionGit and GitHub Info Session
Git and GitHub Info Session
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
GitHub Workflows for Technical Communication
GitHub Workflows for Technical CommunicationGitHub Workflows for Technical Communication
GitHub Workflows for Technical Communication
 
Introduction to Git for Network Engineers
Introduction to Git for Network EngineersIntroduction to Git for Network Engineers
Introduction to Git for Network Engineers
 
Version control
Version controlVersion control
Version control
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
 
Version control
Version controlVersion control
Version control
 
Bitbucket as a code server and pmt
Bitbucket as a code server and pmt Bitbucket as a code server and pmt
Bitbucket as a code server and pmt
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 

More from Sujata Regoti

Social media connecting or disconnecting
Social media connecting or disconnectingSocial media connecting or disconnecting
Social media connecting or disconnectingSujata Regoti
 
Servlet and jsp interview questions
Servlet and jsp interview questionsServlet and jsp interview questions
Servlet and jsp interview questionsSujata Regoti
 
Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSESujata Regoti
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSESujata Regoti
 

More from Sujata Regoti (9)

Social media connecting or disconnecting
Social media connecting or disconnectingSocial media connecting or disconnecting
Social media connecting or disconnecting
 
Image retrieval
Image retrievalImage retrieval
Image retrieval
 
Key management
Key managementKey management
Key management
 
Web mining tools
Web mining toolsWeb mining tools
Web mining tools
 
Servlet and jsp interview questions
Servlet and jsp interview questionsServlet and jsp interview questions
Servlet and jsp interview questions
 
Technical aptitude test 2 CSE
Technical aptitude test 2 CSETechnical aptitude test 2 CSE
Technical aptitude test 2 CSE
 
Technical aptitude Test 1 CSE
Technical aptitude Test 1 CSETechnical aptitude Test 1 CSE
Technical aptitude Test 1 CSE
 
Big Data
Big DataBig Data
Big Data
 
Inflation measuring
Inflation measuringInflation measuring
Inflation measuring
 

Recently uploaded

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
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
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
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
🐬 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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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
 
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
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Recently uploaded (20)

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)
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
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
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
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
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

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

  1. Lesson descriptions should be brief.
  2. 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.