SlideShare a Scribd company logo
Nathaniel Schweinberg
       @nathanielks
    FightTheCurrent.org
What the git?
git is a Source Control
Management application
   It keeps track of your code!
What the Git? - WordCamp Atlanta
git stores only the changes
         you make
What the Git? - WordCamp Atlanta
git allows you to focus
on the feature you’re
        writing
http://hades.name/blog/2010/01/22/git-your-friend-not-foe-vol-2-branches/
git allows multiple developers to
    work on the same project
http://git-scm.com/about/distributed
How to get started!
Step 1: Install git




      http://git-scm.com/book/en/Getting-Started-Installing-Git
Step 2: OPEN TERMINAL
What the Git? - WordCamp Atlanta
Step 3: Get it set up




      http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup
What the Git? - WordCamp Atlanta
What the Git? - WordCamp Atlanta
How git works




          http://git-scm.com/about/staging-area
git init
Initializes a git repository
      in current folder
git add .
   Adds file . to the staging area
( . means current folder and all files inside )
git commit –m ‘initial commit’
 Commits files added to staging area
       ( -m adds commit message )
What the Git? - WordCamp Atlanta
git status
Shows current status of
  working directory
http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository
What the Git? - WordCamp Atlanta
BRANCHING
Branching encourages
     a few things
Frictionless Context Switching
   Feature Based Workflow
 Disposable Experimentation



                            http://git-scm.com/about
What the Git? - WordCamp Atlanta
git branch name
Create new branch to work from
git checkout branchname
 Sets working tree to branchname
What the Git? - WordCamp Atlanta
git checkout –b branchname
Create and checkout into branchname
What the Git? - WordCamp Atlanta
What the Git? - WordCamp Atlanta
git merge branchname
Merges committed changes made in
 branchname with current branch
Repositories!
What the Git? - WordCamp Atlanta
Let’s add a remote repository
What the Git? - WordCamp Atlanta
Two basic actions
    git push              git pull
Pushes changes to    Pulls changes from
   remote repo          remote repo
Let’s integrate with
   WordPress!
What the Git? - WordCamp Atlanta
git clone
Use git clone to duplicate
a remote repository locally
What the Git? - WordCamp Atlanta
Submodules!
  Submodules allow you to keep separate
sections of your code under source control
            ( repos within repos )
git submodule add
         repository
      path/to/location
Adds submodule located at repository to
    path/to/location within project
What the Git? - WordCamp Atlanta
.gitignore
Use .gitignore to prevent files
from being added to the repo
What the Git? - WordCamp Atlanta
Let’s Talk strategy
Commit early,
Commit Often
Use descriptive commit
     messages!
Master branch is stable
       ONLY.
Always develop on a separate branch
Branch naming:
initials/feature-name
    ns/some-cool-feature
Working with multiple
       Devs
git rebase branchname
Updates current branch with changes made
               in another
Resources:
http://bit.ly/WhatTheGit
Nathaniel Schweinberg
       @nathanielks
    FightTheCurrent.org
Ad

More Related Content

What's hot (20)

Git tutorial
Git tutorialGit tutorial
Git tutorial
mobaires
 
Git presentation
Git presentationGit presentation
Git presentation
Vikas Yaligar
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
Arulmurugan Rajaraman
 
Git basic
Git basicGit basic
Git basic
Emran Ul Hadi
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Version Control System - Git
Version Control System - GitVersion Control System - Git
Version Control System - Git
Carlo Bernaschina
 
Version Control & Git
Version Control & GitVersion Control & Git
Version Control & Git
Jason Byrne
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
Pham Quy (Jack)
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
Arthur Shvetsov
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
Pranav Kulkarni
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
Anil Wadghule
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
Sreedath N S
 
Luis atencio on_git
Luis atencio on_gitLuis atencio on_git
Luis atencio on_git
Luis Atencio
 
Git learning
Git learningGit learning
Git learning
Amit Gupta
 
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
Ashoka R K T
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
Safique Ahmed Faruque
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
Nyros Technologies
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
mobaires
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Version Control System - Git
Version Control System - GitVersion Control System - Git
Version Control System - Git
Carlo Bernaschina
 
Version Control & Git
Version Control & GitVersion Control & Git
Version Control & Git
Jason Byrne
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Collaborative development with Git | Workshop
Collaborative development with Git | WorkshopCollaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
Arthur Shvetsov
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
Sreedath N S
 
Luis atencio on_git
Luis atencio on_gitLuis atencio on_git
Luis atencio on_git
Luis Atencio
 
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
Ashoka R K T
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 

Similar to What the Git? - WordCamp Atlanta (20)

Version Control Systems Software Engineering
Version Control Systems Software EngineeringVersion Control Systems Software Engineering
Version Control Systems Software Engineering
ssuser1c86e3
 
Git
GitGit
Git
Mayank Patel
 
Git for developers
Git for developersGit for developers
Git for developers
Hacen Dadda
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
Ashok Kumar Satuluri
 
Git introduction
Git introductionGit introduction
Git introduction
satyendrajaladi
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
DSC GVP
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
Arashdeepkaur16
 
Git
GitGit
Git
Hanokh Aloni
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
Sebin Benjamin
 
GitHub and Open Source - GDGoC MIT Anna University
GitHub and Open Source - GDGoC MIT Anna UniversityGitHub and Open Source - GDGoC MIT Anna University
GitHub and Open Source - GDGoC MIT Anna University
mitgdsc
 
Git
GitGit
Git
Shinu Suresh
 
Git
GitGit
Git
Terry Wang
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 
Git 101
Git 101Git 101
Git 101
jayrparro
 
Git github
Git githubGit github
Git github
Anurag Deb
 
Git slides
Git slidesGit slides
Git slides
Nanyak S
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
Lam Hoang
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
HuthaifaAlmaqrami1
 
Version Control Systems Software Engineering
Version Control Systems Software EngineeringVersion Control Systems Software Engineering
Version Control Systems Software Engineering
ssuser1c86e3
 
Git for developers
Git for developersGit for developers
Git for developers
Hacen Dadda
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
DSC GVP
 
Introducing Git and git flow
Introducing Git and git flow Introducing Git and git flow
Introducing Git and git flow
Sebin Benjamin
 
GitHub and Open Source - GDGoC MIT Anna University
GitHub and Open Source - GDGoC MIT Anna UniversityGitHub and Open Source - GDGoC MIT Anna University
GitHub and Open Source - GDGoC MIT Anna University
mitgdsc
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 
Git slides
Git slidesGit slides
Git slides
Nanyak S
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
Lam Hoang
 
Ad

What the Git? - WordCamp Atlanta