SlideShare uma empresa Scribd logo
1 de 9
Intro to Git
   Why and How
What is Git?
• Distributed Version Control system (DVC)
• Used/Developed by maintainers of Linux
  Kernel (Linus Torvalds)
• Fast and Efficient Branching/Merging
• Great hosted services for offsite
  repositories (e.g. github.com)
What is Version Control?
•   Snapshots changes in a corpus of text/files
    •   e.g. “track revisions” in MS Word
•   Allows multiple people to edit corpus
•   Can be used for anything that changes over time
    •   Software
    •   CV
    •   Legal Documents
What is DVC?
• Distributed Version Control
   Remote          Remote       Remote


       Push/Pull

                    You
How do I get started?
• Initialize a Git project
  • git init .
  • This creates a .git folder which stores the
    git index (amongst other things)
• Add something to the project
  • git add .
  • git commit -m “first checkin”
How do I track changes?
• Change your files then add them to your
  change set
 •   git add . or git add somefile
• Check out what has happened
 • git status (shows current changeset)
 • git log (shows recent commits)
Working with others
•   Add a remote host (if starting out)
    •   Github is free and very good
    •   git remote add hostname hosturl
•   Push your changes
    •   git push hostname branchname
•   You can also ‘git clone’ a remote host if it already
    exists
    •   git pull
Merging/Branching
•   Allows working on multiple versions in parallel
    •   git branch somenewbranch
    •   git checkout somenewbranch
•   Can push/pull on each branch independently
•   Finish a branch by merging back to the source branch (or
    elsewhere)
    •   git merge somenewbranch
    •   N.B. this merges somenewbranch into your current
        branch
Questions?
• Checkout http://www.github.com
• GUIS:
 • http://mac.github.com/
 • http://code.google.com/p/tortoisegit/

Mais conteúdo relacionado

Mais procurados

Davinci git brown_bag
Davinci git brown_bagDavinci git brown_bag
Davinci git brown_bag
Jason Noble
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 

Mais procurados (20)

Git - The Incomplete Introduction
Git - The Incomplete IntroductionGit - The Incomplete Introduction
Git - The Incomplete Introduction
 
Git basics
Git basicsGit basics
Git basics
 
Demo
DemoDemo
Demo
 
Formation git
Formation gitFormation git
Formation git
 
Git and github
Git and githubGit and github
Git and github
 
Git hub
Git hubGit hub
Git hub
 
Do You Get Git?
Do You Get Git? Do You Get Git?
Do You Get Git?
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
Git basics
Git basicsGit basics
Git basics
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git & GitHub N00bs
Git & GitHub N00bsGit & GitHub N00bs
Git & GitHub N00bs
 
Davinci git brown_bag
Davinci git brown_bagDavinci git brown_bag
Davinci git brown_bag
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
An introduction to git
An introduction to gitAn introduction to git
An introduction to git
 
Github
GithubGithub
Github
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Github
GithubGithub
Github
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
 

Semelhante a Intro to git

Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 

Semelhante a Intro to git (20)

Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
 
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
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
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)
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
GIT In Detail
GIT In DetailGIT In Detail
GIT In Detail
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
GIT INTRODUCTION
GIT INTRODUCTIONGIT INTRODUCTION
GIT INTRODUCTION
 
Git overview
Git overviewGit overview
Git overview
 
Intro to Git for Drupal 7
Intro to Git for Drupal 7Intro to Git for Drupal 7
Intro to Git for Drupal 7
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
git and github
git and githubgit and github
git and github
 
Luis atencio on_git
Luis atencio on_gitLuis atencio on_git
Luis atencio on_git
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Git-r-Done
Git-r-DoneGit-r-Done
Git-r-Done
 
Learn Git form Beginners to Master
Learn Git form Beginners to MasterLearn Git form Beginners to Master
Learn Git form Beginners to Master
 

Último

Último (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Intro to git

  • 1. Intro to Git Why and How
  • 2. What is Git? • Distributed Version Control system (DVC) • Used/Developed by maintainers of Linux Kernel (Linus Torvalds) • Fast and Efficient Branching/Merging • Great hosted services for offsite repositories (e.g. github.com)
  • 3. What is Version Control? • Snapshots changes in a corpus of text/files • e.g. “track revisions” in MS Word • Allows multiple people to edit corpus • Can be used for anything that changes over time • Software • CV • Legal Documents
  • 4. What is DVC? • Distributed Version Control Remote Remote Remote Push/Pull You
  • 5. How do I get started? • Initialize a Git project • git init . • This creates a .git folder which stores the git index (amongst other things) • Add something to the project • git add . • git commit -m “first checkin”
  • 6. How do I track changes? • Change your files then add them to your change set • git add . or git add somefile • Check out what has happened • git status (shows current changeset) • git log (shows recent commits)
  • 7. Working with others • Add a remote host (if starting out) • Github is free and very good • git remote add hostname hosturl • Push your changes • git push hostname branchname • You can also ‘git clone’ a remote host if it already exists • git pull
  • 8. Merging/Branching • Allows working on multiple versions in parallel • git branch somenewbranch • git checkout somenewbranch • Can push/pull on each branch independently • Finish a branch by merging back to the source branch (or elsewhere) • git merge somenewbranch • N.B. this merges somenewbranch into your current branch
  • 9. Questions? • Checkout http://www.github.com • GUIS: • http://mac.github.com/ • http://code.google.com/p/tortoisegit/

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n