SlideShare a Scribd company logo
1 of 10
© mimacom ag
Introduction to GIT
23.03.2015 1
Jaime L. López Carratalá
© mimacom ag
What is Git?
• Git is a DVCS (Distributed Version Control System)
└ Every developer has a complete copy of the repository in his machine.
└ More flexibility to adapt the needs of your projects.
└ There is no need to have one central repository (but usually is useful and
recomendable).
└ Several workflows allowed.
23.03.2015 2
© mimacom ag
Advantages and disadvantages
• Advantadges
└ Distributed. Every people who clones the repository has all the information
about tags, branching, history, etc.
└ Much faster. Most of the work is done locally.
└ Reliability. As every people who has cloned the repository has a complete
copy of the repository, if there is a problem in the central server (if exists) the
lost information is minimal.
• Disadvantages
└ Learning curve. The process of changing from a centralized SVN to a
distributed one may be difficult because you have to learn ot use a new (or
several) tool and also a new way of versioning.
23.03.2015 3
© mimacom ag
Elements of Git
23.03.2015 4
© mimacom ag
Mimacom workflow
• Setup local repository
git clone https://git.mimacom.com/scm/PLAYGROUND/git-workflow.git
• Implementing a new feature
└ Create a branch
└ git checkout -b featureA master
└ Start developing, make all the commits that you want
└ git commit –m ‘commit message’
23.03.2015 5
© mimacom ag
Mimacom workflow
└ Update feature branch from master branch
└ Push feature branch to remote repository
└ git push origin featureA
• For more details (as branching conventions) visit:
└ https://rune.mimacom.com/display/kb/mimacom+git+workflow
23.03.2015 6
© mimacom ag
Tools
• Git Bash
└ The command line of git.
• Gitgui
└ Is the graphical interface of git, you can’t do everything that you can do with
the command line but for the basic things works quite good.
23.03.2015 7
© mimacom ag
Tools
• Gitk. Is the commit viewer of Git. This tool complements the Gitgui.
• These three tools are included built-in when you install git: http://git-
scm.com/downloads
23.03.2015 8
© mimacom ag
Aditional tools and information
• Git repository -> Stash
• Plugin for Eclipse -> http://www.eclipse.org/egit/download/
• Additional information in Rune -> https://rune.mimacom.com/display/kb/GIT
23.03.2015 9
© mimacom ag
Questions?
23.03.2015 10

More Related Content

What's hot

Using ssh as portal - The CMS CRAB over glideinWMS experience
Using ssh as portal - The CMS CRAB over glideinWMS experienceUsing ssh as portal - The CMS CRAB over glideinWMS experience
Using ssh as portal - The CMS CRAB over glideinWMS experienceIgor Sfiligoi
 
20171027 モニタリング勉強会
20171027 モニタリング勉強会20171027 モニタリング勉強会
20171027 モニタリング勉強会Paul Traylor
 
Git Tips and Tricks
Git Tips and TricksGit Tips and Tricks
Git Tips and TricksAndrew Grimm
 
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017Codemotion
 
Beginner walkthrough to git and github
Beginner walkthrough to git and githubBeginner walkthrough to git and github
Beginner walkthrough to git and githubMahmoud Said
 
CloudOps DevOps Montreal: Gitlab
CloudOps DevOps Montreal: GitlabCloudOps DevOps Montreal: Gitlab
CloudOps DevOps Montreal: GitlabCloudOps2005
 
The State of CI/CD Tooling in 2019
The State of CI/CD Tooling in 2019The State of CI/CD Tooling in 2019
The State of CI/CD Tooling in 2019CloudOps2005
 
DIEMS Repository Server - GitLab
DIEMS Repository Server - GitLabDIEMS Repository Server - GitLab
DIEMS Repository Server - GitLabMayur Deshmukh
 
Realtime video streaming the open source way
Realtime video streaming the open source wayRealtime video streaming the open source way
Realtime video streaming the open source wayibelmonte
 

What's hot (12)

Using ssh as portal - The CMS CRAB over glideinWMS experience
Using ssh as portal - The CMS CRAB over glideinWMS experienceUsing ssh as portal - The CMS CRAB over glideinWMS experience
Using ssh as portal - The CMS CRAB over glideinWMS experience
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
20171027 モニタリング勉強会
20171027 モニタリング勉強会20171027 モニタリング勉強会
20171027 モニタリング勉強会
 
Git Tips and Tricks
Git Tips and TricksGit Tips and Tricks
Git Tips and Tricks
 
Prometheus + Grafana = Awesome Monitoring
Prometheus + Grafana = Awesome MonitoringPrometheus + Grafana = Awesome Monitoring
Prometheus + Grafana = Awesome Monitoring
 
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
Life of a startup - Sjoerd Mulder - Codemotion Amsterdam 2017
 
Git effective
Git effectiveGit effective
Git effective
 
Beginner walkthrough to git and github
Beginner walkthrough to git and githubBeginner walkthrough to git and github
Beginner walkthrough to git and github
 
CloudOps DevOps Montreal: Gitlab
CloudOps DevOps Montreal: GitlabCloudOps DevOps Montreal: Gitlab
CloudOps DevOps Montreal: Gitlab
 
The State of CI/CD Tooling in 2019
The State of CI/CD Tooling in 2019The State of CI/CD Tooling in 2019
The State of CI/CD Tooling in 2019
 
DIEMS Repository Server - GitLab
DIEMS Repository Server - GitLabDIEMS Repository Server - GitLab
DIEMS Repository Server - GitLab
 
Realtime video streaming the open source way
Realtime video streaming the open source wayRealtime video streaming the open source way
Realtime video streaming the open source way
 

Similar to IntroductionGit

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
 
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, TrivandrumAbhijitNarayan2
 
Git 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanGit 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanJames Ford
 
Git from the trenches
Git from the trenchesGit from the trenches
Git from the trenchesNuno Caneco
 
Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.WordCamp Harare
 
Git for work groups ironhack talk
Git for work groups ironhack talkGit for work groups ironhack talk
Git for work groups ironhack talkTiago Ameller
 
Dev objective2015 lets git together
Dev objective2015 lets git togetherDev objective2015 lets git together
Dev objective2015 lets git togetherColdFusionConference
 
Trunk based development for Beginners
Trunk based development for BeginnersTrunk based development for Beginners
Trunk based development for BeginnersNebulaworks
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control SystemMd. Mujahid Islam
 
Webinar: End to End Security & Operations with Chainguard and Weave GitOps
Webinar: End to End Security & Operations with Chainguard and Weave GitOpsWebinar: End to End Security & Operations with Chainguard and Weave GitOps
Webinar: End to End Security & Operations with Chainguard and Weave GitOpsWeaveworks
 

Similar to IntroductionGit (20)

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!
 
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 presentation
Git presentationGit presentation
Git presentation
 
git Technologies
git Technologiesgit Technologies
git Technologies
 
Git basic
Git basicGit basic
Git basic
 
Git 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanGit 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawan
 
Open source
Open sourceOpen source
Open source
 
Git Basics
Git BasicsGit Basics
Git Basics
 
Switching to Git
Switching to GitSwitching to Git
Switching to Git
 
Git from the trenches
Git from the trenchesGit from the trenches
Git from the trenches
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 
Git for work groups ironhack talk
Git for work groups ironhack talkGit for work groups ironhack talk
Git for work groups ironhack talk
 
3 Git
3 Git3 Git
3 Git
 
Lets git together
Lets git togetherLets git together
Lets git together
 
Dev objective2015 lets git together
Dev objective2015 lets git togetherDev objective2015 lets git together
Dev objective2015 lets git together
 
Trunk based development for Beginners
Trunk based development for BeginnersTrunk based development for Beginners
Trunk based development for Beginners
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
Webinar: End to End Security & Operations with Chainguard and Weave GitOps
Webinar: End to End Security & Operations with Chainguard and Weave GitOpsWebinar: End to End Security & Operations with Chainguard and Weave GitOps
Webinar: End to End Security & Operations with Chainguard and Weave GitOps
 

IntroductionGit

  • 1. © mimacom ag Introduction to GIT 23.03.2015 1 Jaime L. López Carratalá
  • 2. © mimacom ag What is Git? • Git is a DVCS (Distributed Version Control System) └ Every developer has a complete copy of the repository in his machine. └ More flexibility to adapt the needs of your projects. └ There is no need to have one central repository (but usually is useful and recomendable). └ Several workflows allowed. 23.03.2015 2
  • 3. © mimacom ag Advantages and disadvantages • Advantadges └ Distributed. Every people who clones the repository has all the information about tags, branching, history, etc. └ Much faster. Most of the work is done locally. └ Reliability. As every people who has cloned the repository has a complete copy of the repository, if there is a problem in the central server (if exists) the lost information is minimal. • Disadvantages └ Learning curve. The process of changing from a centralized SVN to a distributed one may be difficult because you have to learn ot use a new (or several) tool and also a new way of versioning. 23.03.2015 3
  • 4. © mimacom ag Elements of Git 23.03.2015 4
  • 5. © mimacom ag Mimacom workflow • Setup local repository git clone https://git.mimacom.com/scm/PLAYGROUND/git-workflow.git • Implementing a new feature └ Create a branch └ git checkout -b featureA master └ Start developing, make all the commits that you want └ git commit –m ‘commit message’ 23.03.2015 5
  • 6. © mimacom ag Mimacom workflow └ Update feature branch from master branch └ Push feature branch to remote repository └ git push origin featureA • For more details (as branching conventions) visit: └ https://rune.mimacom.com/display/kb/mimacom+git+workflow 23.03.2015 6
  • 7. © mimacom ag Tools • Git Bash └ The command line of git. • Gitgui └ Is the graphical interface of git, you can’t do everything that you can do with the command line but for the basic things works quite good. 23.03.2015 7
  • 8. © mimacom ag Tools • Gitk. Is the commit viewer of Git. This tool complements the Gitgui. • These three tools are included built-in when you install git: http://git- scm.com/downloads 23.03.2015 8
  • 9. © mimacom ag Aditional tools and information • Git repository -> Stash • Plugin for Eclipse -> http://www.eclipse.org/egit/download/ • Additional information in Rune -> https://rune.mimacom.com/display/kb/GIT 23.03.2015 9