SlideShare a Scribd company logo
Source Code Management with
Git & Github.com
Kiattisak Anoochitarom

November 18, 2012
Introduction to VCS

What is version control, and why should care ? Version Control is a
system that record changes to a file or set of files over time so that you
can recall a specific versions later. For the example in this class you
will use software source code as the files being version controlled,
through in reality you can do this with nearly any type of file on a
computer.

It allows you to revert files back to a previous state, revert the entire
project back to a previous state, compare changes over time, see who
last modified something that might be causing a problem, who
introduced an issue and when, and more.
Local Version Control
Centralized Version Control
Centralized Version Control
Distributed Version Control


                   Full Mirror

                   Almost Everything is Local

                   Fast

                   Full Backup

                   Work Offline
Version Control System Software

  Mercurial (HG)   SVN (Subversion)
Git
Fast
Simple
Many branches
Fully Distributed

Work efficiently
with Linux Kernel
Who use git ?
Git slide
3 File Status on Git

     untracked        unmodified             modified                 staged




                             edit the file

             add the file

                                                    stage the file


            remove the file

                                            commit the file
3 Stages of Git

 The Basic Git             working
                           directory
                                                    staging
                                                     area
                                                                        git directory
                                                                        (repository)

 workflow
                                               checkout the project
 1. You modify files in
 your working directory.
 2. You stage the files.
 3. You do a commit,                   stage files

 files on your staging
 area are permanently
                                                              commit files
 stores in Repository.
Download and Install Git




       http://www.git-scm.com
Basic Configuration

 $ git config --global user.name “iMacbaszii” ***

 $ git config --global user.email “macbaszii@gmail.com” ***



 $ git config --global core.editor mate

 $ git config --global merge.tool vimdiff

 $ git config --list ***

 $ git config user.name ***
Create Repository
Stage and Commit File
Check your files status
Log Committed History
Remove, Rename File
Demo
Github.com
Generating SSH Keys (public key)
     $ ssh-keygen -t rsa -C “macbaszii@gmail.com”




                               https://help.github.com/articles/generating-ssh-keys
Add your SSH key to Github




                 https://help.github.com/articles/generating-ssh-keys
Create online Repository
Quick setup
Work with Github
It’s work.
Clone Repository
Many Open-Source Library on Github
GUI Tools


         SourceTree                        Tortoise Git




 http://www.sourcetreeapp.com   http://code.google.com/p/tortoisegit/
Book Recommended




                http://www.progit.org
https://github.com/opendream/progit

More Related Content

PPTX
Git commands
KEY
Basic Git
ODP
Git presentation
PPTX
Version control system and Git
PPSX
Git the fast version control system
PPTX
Extra bit with git
PPTX
Git learn from scratch
PDF
Version Control History and Git Basics
Git commands
Basic Git
Git presentation
Version control system and Git
Git the fast version control system
Extra bit with git
Git learn from scratch
Version Control History and Git Basics

What's hot (20)

PDF
Version Control System - Git
PDF
Version Control & Git
PPTX
Git - Basic Crash Course
PDF
Git basics
PDF
Introduction to Git
PPTX
From svn to git
PDF
Version control system
PPT
FTP Commando to Git Hero - WordCamp Denver 2013
PDF
PPT
Git basic
PDF
Git tutorial
PPT
Learn Git Basics
PDF
Git introduction workshop for scientists
PPTX
Git training (basic)
PPTX
Gitting out of trouble
PPTX
Luis atencio on_git
PDF
A Quick Start - Version Control with Git
PPTX
Git for a newbie
PPTX
Git in 10 minutes
Version Control System - Git
Version Control & Git
Git - Basic Crash Course
Git basics
Introduction to Git
From svn to git
Version control system
FTP Commando to Git Hero - WordCamp Denver 2013
Git basic
Git tutorial
Learn Git Basics
Git introduction workshop for scientists
Git training (basic)
Gitting out of trouble
Luis atencio on_git
A Quick Start - Version Control with Git
Git for a newbie
Git in 10 minutes
Ad

Viewers also liked (7)

PPTX
Manufacturingofmicroprocessor 120813121945-phpapp02
PDF
Shasta county mou 2013
PPT
O lectie de patriotism local
PDF
Proposta di deliberazione prot. n. 259 del 2012 (2)
PPTX
Simulation training in medicine and technology management
DOC
Cach giai bai tap dai tu quan he
Manufacturingofmicroprocessor 120813121945-phpapp02
Shasta county mou 2013
O lectie de patriotism local
Proposta di deliberazione prot. n. 259 del 2012 (2)
Simulation training in medicine and technology management
Cach giai bai tap dai tu quan he
Ad

Similar to Git slide (20)

PDF
Learning git
PPTX
Git basics
PPTX
github ppt git ppt on git hub to know ab
PDF
Mini git tutorial
PPTX
GIT.pptx
PPTX
Git walkthrough
PPTX
Git 101 for_tarad_dev
PPTX
git.ppt.pptx power point presentation got Google internet
PPTX
Introduction to Git and Github
PDF
PPTX
Understanding GIT and Version Control
PDF
A Practical Introduction to git
PPTX
Git and github
PDF
Git, GitHub and Open Source
ODP
Git for standalone use
PPTX
Git Basics for Software Version Management
PPTX
Git 101
PPTX
Version Control with Git
PDF
Git_tutorial.pdf
PDF
Git hub
Learning git
Git basics
github ppt git ppt on git hub to know ab
Mini git tutorial
GIT.pptx
Git walkthrough
Git 101 for_tarad_dev
git.ppt.pptx power point presentation got Google internet
Introduction to Git and Github
Understanding GIT and Version Control
A Practical Introduction to git
Git and github
Git, GitHub and Open Source
Git for standalone use
Git Basics for Software Version Management
Git 101
Version Control with Git
Git_tutorial.pdf
Git hub

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectroscopy.pptx food analysis technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”

Git slide