Github_Intro_Devops
Github_Intro_Devops
Module 2: Git
Overview
1. Install git and create a Github account
2. What is git?
3. How does git work?
4. What is GitHub?
5. Quick example using git and GitHub
Github icon
1 Install git and a create
GitHub account
Install git
• Linux (Debian)
-Command: sudo apt-get install git
• Linux (Fedora)
-Command: sudo yum install git
• Mac
-http://git-scm.com/download/mac
• Windows
-http://git-scm.com/download/win
Create Github account
• www.github.com
• Free for public repositories
What is version control?
• Started in 2005
• Created by Linus Torvald to aid in Linux kernel
development
Git icon
What is git?
• Git isn’t the only version control system
Time going
So, what is HEAD?
● A reference to the most recent commit
○ (in most cases – not always true!)
Images from:
http://codingdomain.com
/ git/merging/
• The process:
• Make some changes to a file
• Use the ‘git add’ command to put the file onto the
staging environment
• Use the ‘git commit’ command to create a new
commit’
Key Concepts: How do you make a commit
anyway?
• Founded in 2008
• Also has an Enterprise
edition for businesses
Octocat!
Centralized VCS
Distributed VCS