SlideShare a Scribd company logo
Git Basics



Presentation: 0.5hr                Terence Chia
Workshop: 1hr                      1 September 2010
Git Basics
●   Introduction   ●   Git Migration
●   Get Started    ●   Git Clients
●   Start Coding   ●   Git Community
●   Team           ●   Git Resources
     Development




                                       Terence Chia
                                       1 September 2010
Getting Started
●   $git init       ●   Starts a new local git
●                       repository
●   $git clone      ●   Gets a copy of a remote
●
                        repository
Start Coding
●   $git add         ●   Add modified files to
●                        “stage”. This prepares
●
                         you to commit the files.
●   $git commit
                     ●   Commits file to
                         repository
●
What have I done?!
●   $git status    ●   Reveals code status
●   $git log       ●   Shows change log
●   $git diff      ●   Shows diff of changed
●                      files
●   $git show      ●   Shows diff by commits
●   $git help      ●   General Git help
●


●


●
Team Development
●   Setup Identity
●   Setup a shared repository
●   Basic ways of avoiding conflicts
●   Branching
●   Merging
Team Development
    ●   $git config                             ●   Setup user
●       $ git config –global user.name “DevA”
                                                    configuration & contact
                                                    details
●       $git config –global user.email
        “DevA@site.com”


    ●   $git pull                               ●   Pull down changes
    ●   $git push                               ●   Push your updates
    ●   $git stash                              ●   Stash your changes.
                                                    Restore to original state
Bye bye SVN, CVS

           ● Git exceeds basic SCM features
           ● CVS, SVN are history

           ● Migration from SVN to GIT is simple

           ● But prepare your SVN users & repository first




    ●   $git svn
●       $ git svn clone http://svn/repo/here/trunk
Git Clients
●   Linux, Windows, MacOS tools
●   Command line
●   Git Bash
●   GitK
●   Alot of Git dev integration tools out there.
Git Clients
●   Linux, Windows, MacOS tools
●   Command line
●   Git Bash
●   GitK
●   Alot of Git dev integration tools out there.
Git Community
●   Git is open sourced under GPLv2
●   Public Repositories
    – http://github.com
    – http://bitbucket.org
●   DIY Public Repositories
Git Resources
●   http://git-scm.com
●   http://wiki.glitchdata.com/index.php?title=Git
●   http://gitready.com/
●   Alot of resources available
Thank You
●   Let's Practice
●   Exercises




                                 Terence Chia
                                 1 September 2010

More Related Content

What's hot

Hacktoberfest 2021
Hacktoberfest 2021Hacktoberfest 2021
Hacktoberfest 2021
SadhanaParameswaran
 
Git.odp 0
Git.odp 0Git.odp 0
Git.odp 0
Mannu Malhotra
 
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
Yan Vugenfirer
 
Advanted git
Advanted git Advanted git
Advanted git
Sahil Gupta
 
Git advanced
Git advancedGit advanced
Git advanced
Peter Vandenabeele
 
Do You Get Git?
Do You Get Git? Do You Get Git?
Do You Get Git?
Prasid Pathak
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
AbhijitNarayan2
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
responseteam
 
Barcamp Hong Kong 2014 - Introduction to GIT
Barcamp Hong Kong 2014 - Introduction to GITBarcamp Hong Kong 2014 - Introduction to GIT
Barcamp Hong Kong 2014 - Introduction to GIT
Wong Hoi Sing Edison
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Yan Vugenfirer
 
Open source
Open sourceOpen source
Open source
onaelmangabo
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
khelll
 
Get Familiar With Git
Get Familiar With Git Get Familiar With Git
Get Familiar With Git
Nigam Goyal
 
Git tech talk
Git tech talkGit tech talk
Git tech talkrazasayed
 
Version Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an exampleVersion Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an example
Gaurav Kumar Garg
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentals
RajKharvar
 
Docker&kubernetes
Docker&kubernetesDocker&kubernetes
Hg version control bioinformaticians
Hg version control bioinformaticiansHg version control bioinformaticians
Hg version control bioinformaticians
Giovanni Marco Dall'Olio
 

What's hot (20)

Hacktoberfest 2021
Hacktoberfest 2021Hacktoberfest 2021
Hacktoberfest 2021
 
Git.odp 0
Git.odp 0Git.odp 0
Git.odp 0
 
Git: Git'ing the Basic
Git: Git'ing the BasicGit: Git'ing the Basic
Git: Git'ing the Basic
 
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
 
Advanted git
Advanted git Advanted git
Advanted git
 
Git advanced
Git advancedGit advanced
Git advanced
 
Do You Get Git?
Do You Get Git? Do You Get Git?
Do You Get Git?
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
 
Barcamp Hong Kong 2014 - Introduction to GIT
Barcamp Hong Kong 2014 - Introduction to GITBarcamp Hong Kong 2014 - Introduction to GIT
Barcamp Hong Kong 2014 - Introduction to GIT
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Open source
Open sourceOpen source
Open source
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Get Familiar With Git
Get Familiar With Git Get Familiar With Git
Get Familiar With Git
 
Git tech talk
Git tech talkGit tech talk
Git tech talk
 
Version Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an exampleVersion Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an example
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentals
 
Docker&kubernetes
Docker&kubernetesDocker&kubernetes
Docker&kubernetes
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
Hg version control bioinformaticians
Hg version control bioinformaticiansHg version control bioinformaticians
Hg version control bioinformaticians
 

Similar to Git basics

GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17siva ram
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
 
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
Carlos Taborda
 
Git is a distributed version control system .
Git is a distributed version control system .Git is a distributed version control system .
Git is a distributed version control system .
HELLOWorld889594
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
Pooja Shah
 
Git
GitGit
GIT-FirstPart.ppt
GIT-FirstPart.pptGIT-FirstPart.ppt
GIT-FirstPart.ppt
ssusered2ec2
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
Grace Chien
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!
Cory Webb
 
Enterprise git
Enterprise gitEnterprise git
Enterprise gitPedro Melo
 
Github basics
Github basicsGithub basics
Github basics
Radoslav Georgiev
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
DivineOmega
 
Git & github
Git & githubGit & github
Git & github
MicroPyramid .
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
Kishor Kumar
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
Gorav Singal
 
Using Subversion and Git Together
Using Subversion and Git TogetherUsing Subversion and Git Together
Using Subversion and Git Together
tmatesoftware
 

Similar to Git basics (20)

Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17GIT_GITHUB_2016_06_17
GIT_GITHUB_2016_06_17
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
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 is a distributed version control system .
Git is a distributed version control system .Git is a distributed version control system .
Git is a distributed version control system .
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git
GitGit
Git
 
GIT-FirstPart.ppt
GIT-FirstPart.pptGIT-FirstPart.ppt
GIT-FirstPart.ppt
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!
 
Enterprise git
Enterprise gitEnterprise git
Enterprise git
 
Github basics
Github basicsGithub basics
Github basics
 
Git 101 for_tarad_dev
Git 101 for_tarad_devGit 101 for_tarad_dev
Git 101 for_tarad_dev
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git & github
Git & githubGit & github
Git & github
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
 
Using Subversion and Git Together
Using Subversion and Git TogetherUsing Subversion and Git Together
Using Subversion and Git Together
 

Recently uploaded

一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
ybout
 
Corporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdfCorporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdf
Probe Gold
 
Snam 2023-27 Industrial Plan - Financial Presentation
Snam 2023-27 Industrial Plan - Financial PresentationSnam 2023-27 Industrial Plan - Financial Presentation
Snam 2023-27 Industrial Plan - Financial Presentation
Valentina Ottini
 
Investor Day 2024 Presentation Sysco 2024
Investor Day 2024 Presentation Sysco 2024Investor Day 2024 Presentation Sysco 2024
Investor Day 2024 Presentation Sysco 2024
Sysco_Investors
 
Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024
CollectiveMining1
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
Sysco_Investors
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
Philip Rabenok
 
cyberagent_For New Investors_EN_240424.pdf
cyberagent_For New Investors_EN_240424.pdfcyberagent_For New Investors_EN_240424.pdf
cyberagent_For New Investors_EN_240424.pdf
CyberAgent, Inc.
 

Recently uploaded (8)

一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
 
Corporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdfCorporate Presentation Probe June 2024.pdf
Corporate Presentation Probe June 2024.pdf
 
Snam 2023-27 Industrial Plan - Financial Presentation
Snam 2023-27 Industrial Plan - Financial PresentationSnam 2023-27 Industrial Plan - Financial Presentation
Snam 2023-27 Industrial Plan - Financial Presentation
 
Investor Day 2024 Presentation Sysco 2024
Investor Day 2024 Presentation Sysco 2024Investor Day 2024 Presentation Sysco 2024
Investor Day 2024 Presentation Sysco 2024
 
Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024Collective Mining | Corporate Presentation - May 2024
Collective Mining | Corporate Presentation - May 2024
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
 
cyberagent_For New Investors_EN_240424.pdf
cyberagent_For New Investors_EN_240424.pdfcyberagent_For New Investors_EN_240424.pdf
cyberagent_For New Investors_EN_240424.pdf
 

Git basics

  • 1. Git Basics Presentation: 0.5hr Terence Chia Workshop: 1hr 1 September 2010
  • 2. Git Basics ● Introduction ● Git Migration ● Get Started ● Git Clients ● Start Coding ● Git Community ● Team ● Git Resources Development Terence Chia 1 September 2010
  • 3. Getting Started ● $git init ● Starts a new local git ● repository ● $git clone ● Gets a copy of a remote ● repository
  • 4. Start Coding ● $git add ● Add modified files to ● “stage”. This prepares ● you to commit the files. ● $git commit ● Commits file to repository ●
  • 5. What have I done?! ● $git status ● Reveals code status ● $git log ● Shows change log ● $git diff ● Shows diff of changed ● files ● $git show ● Shows diff by commits ● $git help ● General Git help ● ● ●
  • 6. Team Development ● Setup Identity ● Setup a shared repository ● Basic ways of avoiding conflicts ● Branching ● Merging
  • 7. Team Development ● $git config ● Setup user ● $ git config –global user.name “DevA” configuration & contact details ● $git config –global user.email “DevA@site.com” ● $git pull ● Pull down changes ● $git push ● Push your updates ● $git stash ● Stash your changes. Restore to original state
  • 8. Bye bye SVN, CVS ● Git exceeds basic SCM features ● CVS, SVN are history ● Migration from SVN to GIT is simple ● But prepare your SVN users & repository first ● $git svn ● $ git svn clone http://svn/repo/here/trunk
  • 9. Git Clients ● Linux, Windows, MacOS tools ● Command line ● Git Bash ● GitK ● Alot of Git dev integration tools out there.
  • 10. Git Clients ● Linux, Windows, MacOS tools ● Command line ● Git Bash ● GitK ● Alot of Git dev integration tools out there.
  • 11. Git Community ● Git is open sourced under GPLv2 ● Public Repositories – http://github.com – http://bitbucket.org ● DIY Public Repositories
  • 12. Git Resources ● http://git-scm.com ● http://wiki.glitchdata.com/index.php?title=Git ● http://gitready.com/ ● Alot of resources available
  • 13. Thank You ● Let's Practice ● Exercises Terence Chia 1 September 2010