SlideShare una empresa de Scribd logo
1 de 36
Git is the new sexy




                 @Vingel
Why?
Why?

• it’s the stupid content tracker
Why?

• it’s the stupid content tracker
• it’s fast!
Why?

• it’s the stupid content tracker
• it’s fast!
• it' 1000 times sexy than SVN
Why?

• it’s the stupid content tracker
• it’s fast!
• it' 1000 times sexy than SVN
• It’s written for Linux by Linus Torvalds
Installation
Installation

• brew install git   //short & sweet :)
Installation

• brew install git //short & sweet :)
• http://mac.github.com/
Installation

• brew install git //short & sweet :)
• http://mac.github.com/
• http://code.google.com/p/msysgit/
Start
Start

•   git clone https://github.com/jquery/jquery.git
Start

•   git clone https://github.com/jquery/jquery.git
•   Initialized empty Git repository in /tmp/jquery/.git/ remote:
    Counting objects: 14043, done.
    remote: Compressing objects: 100% (4070/4070), done.
    remote: Total 14043 (delta 9717), reused 13753 (delta 9452)
    Receiving objects: 100% (14043/14043), 12.45 MiB | 288 KiB/s, done.
    Resolving deltas: 100% (9717/9717), done.
Using git
Using git
•   mkdir repo.git
Using git
•   mkdir repo.git

•   git init --bare
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin

•   cd repo
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin

•   cd repo

•   touch README
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin

•   cd repo

•   touch README

•   git add README
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin

•   cd repo

•   touch README

•   git add README

•   git ci -m “hello git”
Using git
•   mkdir repo.git

•   git init --bare

•   git clone admin@alipay.im:/git/repo.git   //
    password: admin

•   cd repo

•   touch README

•   git add README

•   git ci -m “hello git”

•   git push
Git on Dropbox
That’s All!
Wait a minutes.
One More Thing
The Real World
•   git help           •   git fetch

•   git clone          •   git pullush

•   git diff           •   git pull

•   git status         •   git log

•   git branch         •   git config

•   git checkout       •   git tag

•   git merge/rebase   •   git submodule

•   git remote         •   git init

•   git commit         •   .......
Git Status
Git Push/Pull
Git branch
Merge
Rebase
Others

•     销

    git checkout -- file ( svn revert file)
•     销                   git commit --amend
Git                   则
•   Commit

•    Commit Message

•            Commit,                  发      毕   Push

•      Rebase         经 Push           东

      http://progit.org/book/zh/ch3-6.html
Resource
• http://git-scm.org
• http://github.com // Git hosting
• http://progit.org/book/zh/ //                   书

•   http://sixrevisions.com/resources/git-tutorials-
    beginners/

•   https://gist.github.com/1284253 //Vingel’s .gitconfig

•   git flow //git           实

Más contenido relacionado

La actualidad más candente

Git Introduction
Git IntroductionGit Introduction
Git Introduction
Gareth Hall
 

La actualidad más candente (20)

git and github
git and githubgit and github
git and github
 
Demo
DemoDemo
Demo
 
Inside GitHub with Chris Wanstrath
Inside GitHub with Chris WanstrathInside GitHub with Chris Wanstrath
Inside GitHub with Chris Wanstrath
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
Git, GitHub and Open Source
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Introduction to Git, DrupalCamp LA 2015
Introduction to Git, DrupalCamp LA 2015Introduction to Git, DrupalCamp LA 2015
Introduction to Git, DrupalCamp LA 2015
 
Github Case Study By Amil Ali
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil Ali
 
Presentacion git
Presentacion gitPresentacion git
Presentacion git
 
Git basics
Git basicsGit basics
Git basics
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to Version Control with GIT
Introduction to Version Control with GITIntroduction to Version Control with GIT
Introduction to Version Control with GIT
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
GIT: a Gentle InTroduction
GIT: a Gentle InTroductionGIT: a Gentle InTroduction
GIT: a Gentle InTroduction
 
Git'in on Windows
Git'in on WindowsGit'in on Windows
Git'in on Windows
 
Gitting out of trouble
Gitting out of troubleGitting out of trouble
Gitting out of trouble
 
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
 

Destacado (8)

谈谈Javascript设计
谈谈Javascript设计谈谈Javascript设计
谈谈Javascript设计
 
Internet dan intranet
Internet dan intranetInternet dan intranet
Internet dan intranet
 
浅析浏览器解析和渲染
浅析浏览器解析和渲染浅析浏览器解析和渲染
浅析浏览器解析和渲染
 
hypertension
hypertensionhypertension
hypertension
 
Pm角色及前端升级包相关
Pm角色及前端升级包相关Pm角色及前端升级包相关
Pm角色及前端升级包相关
 
讲故事
讲故事讲故事
讲故事
 
前后端解耦Ppt
前后端解耦Ppt前后端解耦Ppt
前后端解耦Ppt
 
Pengertian Internet dan Intranet
Pengertian Internet dan IntranetPengertian Internet dan Intranet
Pengertian Internet dan Intranet
 

Similar a Git isthenewsexy

Gitting the Most From Git
Gitting the Most From GitGitting the Most From Git
Gitting the Most From Git
Chris Miller
 

Similar a Git isthenewsexy (20)

COSCUP 開源工作坊:Git workflows
COSCUP 開源工作坊:Git workflowsCOSCUP 開源工作坊:Git workflows
COSCUP 開源工作坊:Git workflows
 
Github basics
Github basicsGithub basics
Github basics
 
Git 基础
Git 基础Git 基础
Git 基础
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
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
 
Why Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anywaysWhy Git Sucks and you'll use it anyways
Why Git Sucks and you'll use it anyways
 
Git简介
Git简介Git简介
Git简介
 
Git 101 for_tarad_dev
Git 101 for_tarad_devGit 101 for_tarad_dev
Git 101 for_tarad_dev
 
Git Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a BossGit Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a Boss
 
Gitting the Most From Git
Gitting the Most From GitGitting the Most From Git
Gitting the Most From Git
 
Nicolás Aravena - Cómo aprender Git y no morir en el intento
Nicolás Aravena - Cómo aprender Git y no morir en el intentoNicolás Aravena - Cómo aprender Git y no morir en el intento
Nicolás Aravena - Cómo aprender Git y no morir en el intento
 
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
 
maksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your cimaksym vlasov - culture of git as roots of your ci
maksym vlasov - culture of git as roots of your ci
 
Git Heaven with Wakanda
Git Heaven with WakandaGit Heaven with Wakanda
Git Heaven with Wakanda
 
Git! Why? How?
Git! Why? How?Git! Why? How?
Git! Why? How?
 
The git
The gitThe git
The git
 
GIT, RVM, FIRST HEROKU APP
GIT, RVM, FIRST HEROKU APPGIT, RVM, FIRST HEROKU APP
GIT, RVM, FIRST HEROKU APP
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
 
Basic Git commands
Basic Git commandsBasic Git commands
Basic Git commands
 

Más de Ailsa126

缴费代码
缴费代码缴费代码
缴费代码
Ailsa126
 
Vim+神技 (1)
Vim+神技 (1)Vim+神技 (1)
Vim+神技 (1)
Ailsa126
 
前端优化实践
前端优化实践前端优化实践
前端优化实践
Ailsa126
 
Web encoding
Web encodingWeb encoding
Web encoding
Ailsa126
 

Más de Ailsa126 (6)

缴费代码
缴费代码缴费代码
缴费代码
 
Ps分享
Ps分享Ps分享
Ps分享
 
Vim+神技 (1)
Vim+神技 (1)Vim+神技 (1)
Vim+神技 (1)
 
Share
ShareShare
Share
 
前端优化实践
前端优化实践前端优化实践
前端优化实践
 
Web encoding
Web encodingWeb encoding
Web encoding
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
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...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Git isthenewsexy

  • 1. Git is the new sexy @Vingel
  • 3. Why? • it’s the stupid content tracker
  • 4. Why? • it’s the stupid content tracker • it’s fast!
  • 5. Why? • it’s the stupid content tracker • it’s fast! • it' 1000 times sexy than SVN
  • 6. Why? • it’s the stupid content tracker • it’s fast! • it' 1000 times sexy than SVN • It’s written for Linux by Linus Torvalds
  • 8. Installation • brew install git //short & sweet :)
  • 9. Installation • brew install git //short & sweet :) • http://mac.github.com/
  • 10. Installation • brew install git //short & sweet :) • http://mac.github.com/ • http://code.google.com/p/msysgit/
  • 11. Start
  • 12. Start • git clone https://github.com/jquery/jquery.git
  • 13. Start • git clone https://github.com/jquery/jquery.git • Initialized empty Git repository in /tmp/jquery/.git/ remote: Counting objects: 14043, done. remote: Compressing objects: 100% (4070/4070), done. remote: Total 14043 (delta 9717), reused 13753 (delta 9452) Receiving objects: 100% (14043/14043), 12.45 MiB | 288 KiB/s, done. Resolving deltas: 100% (9717/9717), done.
  • 15. Using git • mkdir repo.git
  • 16. Using git • mkdir repo.git • git init --bare
  • 17. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin
  • 18. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin • cd repo
  • 19. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin • cd repo • touch README
  • 20. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin • cd repo • touch README • git add README
  • 21. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin • cd repo • touch README • git add README • git ci -m “hello git”
  • 22. Using git • mkdir repo.git • git init --bare • git clone admin@alipay.im:/git/repo.git // password: admin • cd repo • touch README • git add README • git ci -m “hello git” • git push
  • 27.
  • 28. The Real World • git help • git fetch • git clone • git pullush • git diff • git pull • git status • git log • git branch • git config • git checkout • git tag • git merge/rebase • git submodule • git remote • git init • git commit • .......
  • 32. Merge
  • 34. Others • 销 git checkout -- file ( svn revert file) • 销 git commit --amend
  • 35. Git 则 • Commit • Commit Message • Commit, 发 毕 Push • Rebase 经 Push 东 http://progit.org/book/zh/ch3-6.html
  • 36. Resource • http://git-scm.org • http://github.com // Git hosting • http://progit.org/book/zh/ // 书 • http://sixrevisions.com/resources/git-tutorials- beginners/ • https://gist.github.com/1284253 //Vingel’s .gitconfig • git flow //git 实

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n