SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
Version Control with
pt.1
$ whoami

●   Renato Oliveira
●   @_renatoOliveira
●   renato@labcodes.com.br
●   CIn/UFPE/GPRT
●   LabCodes/Mobdoctor
●   python/django
●   pug-pe, python-brasil, django-brasil
●   pythonNordeste 2013, May 24-25
Intro

● Distributed revision control software

● Open-source

● Written in C

● Multi platform
Linus Torvalds
Junio Hamano
Tech Talk about Git



http://www.youtube.com/watch?v=4XpnKHJAok8
Shared!
Distributed!
Basic Commands

config

● git config --global user.name "Your Name"

● git config --global user.email "Your E-mail"

● git config --global color.ui true
Basic Commands
creating a repository

● git init

cloning a repository

● git clone repo_url
Basic Commands
Add a file

● git add path/to/file

Commit a file

● git commit
or
● git commit -m "commit message"
Difference between Svn commit and
git commit

● Git commits are locals!
● Local repositories are git repositories.
● No Internet needed!
● You don't need public access to the
  repository!
● So, to a better version control...
Add a remote repository




● git remote add repository_name url
Upload your code




● git push repository_name branch_name
Updating your code




git pull repository_name branch_name
Git branching
Every local repository is a branch.
but branching is a good practice.

● git branch branch_name

● git checkout branch_name

● git branch -D branch_name
Merging




● git checkout branch_name

● git merge another_branch_name
questions?
@_renatoOliveira
renato@labcodes.com.br

Contenu connexe

Tendances

Version Control with Git
Version Control with GitVersion Control with Git
Version Control with GitJuanma Orta
 
Enjoy fighting regressions_with_git_bisect
Enjoy fighting regressions_with_git_bisectEnjoy fighting regressions_with_git_bisect
Enjoy fighting regressions_with_git_bisectChristian Couder
 
New Views on your History with git replace
New Views on your History with git replaceNew Views on your History with git replace
New Views on your History with git replaceChristian Couder
 
Open Source & Free Software
Open Source & Free SoftwareOpen Source & Free Software
Open Source & Free SoftwareFreddy Rolland
 
TYPO3 Contribution for beginners
TYPO3 Contribution for beginnersTYPO3 Contribution for beginners
TYPO3 Contribution for beginnersFrank Nägler
 
RigaDevDay 2016 - Testing with Spock: The Logical Choice
RigaDevDay 2016 - Testing with Spock: The Logical ChoiceRigaDevDay 2016 - Testing with Spock: The Logical Choice
RigaDevDay 2016 - Testing with Spock: The Logical ChoiceIván López Martín
 
Gulp presentation
Gulp presentationGulp presentation
Gulp presentationmclise
 
Extending GDB with Python
Extending GDB with PythonExtending GDB with Python
Extending GDB with PythonLisa Roach
 
Gomobile: gophers in the land of Android
Gomobile: gophers in the land of AndroidGomobile: gophers in the land of Android
Gomobile: gophers in the land of AndroidJovica Popovic
 
Version open source everything
Version   open source everythingVersion   open source everything
Version open source everythingBaylee Schmeisser
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesMitali Bisht
 

Tendances (20)

Let's Contribute
Let's ContributeLet's Contribute
Let's Contribute
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with Git
 
Git
GitGit
Git
 
Dcvs
DcvsDcvs
Dcvs
 
Enjoy fighting regressions_with_git_bisect
Enjoy fighting regressions_with_git_bisectEnjoy fighting regressions_with_git_bisect
Enjoy fighting regressions_with_git_bisect
 
Besut Kode Challenge 1
Besut Kode Challenge 1Besut Kode Challenge 1
Besut Kode Challenge 1
 
Git
GitGit
Git
 
Git and Testing
Git and TestingGit and Testing
Git and Testing
 
New Views on your History with git replace
New Views on your History with git replaceNew Views on your History with git replace
New Views on your History with git replace
 
GoLang Introduction
GoLang IntroductionGoLang Introduction
GoLang Introduction
 
Open Source & Free Software
Open Source & Free SoftwareOpen Source & Free Software
Open Source & Free Software
 
TYPO3 Contribution for beginners
TYPO3 Contribution for beginnersTYPO3 Contribution for beginners
TYPO3 Contribution for beginners
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
RigaDevDay 2016 - Testing with Spock: The Logical Choice
RigaDevDay 2016 - Testing with Spock: The Logical ChoiceRigaDevDay 2016 - Testing with Spock: The Logical Choice
RigaDevDay 2016 - Testing with Spock: The Logical Choice
 
Gulp presentation
Gulp presentationGulp presentation
Gulp presentation
 
Extending GDB with Python
Extending GDB with PythonExtending GDB with Python
Extending GDB with Python
 
Git: Git'ing the Basic
Git: Git'ing the BasicGit: Git'ing the Basic
Git: Git'ing the Basic
 
Gomobile: gophers in the land of Android
Gomobile: gophers in the land of AndroidGomobile: gophers in the land of Android
Gomobile: gophers in the land of Android
 
Version open source everything
Version   open source everythingVersion   open source everything
Version open source everything
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notes
 

Similaire à Controle de versão com git

GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018Pooja Shah
 
What is version control software and why do you need it?
What is version control software and why do you need it?What is version control software and why do you need it?
What is version control software and why do you need it?Leonid Mamchenkov
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitAmit Mathur
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with gitgdgjss
 
Beginner's guide to git
Beginner's guide to gitBeginner's guide to git
Beginner's guide to gitLim Sim
 
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
 
Git introduction for Beginners
Git introduction for BeginnersGit introduction for Beginners
Git introduction for BeginnersMortezaTaghaddomi
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How tolanhuonga3
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control SystemMd. Mujahid Islam
 
Programming with Python - Basic
Programming with Python - BasicProgramming with Python - Basic
Programming with Python - BasicMosky Liu
 
WordCamp KC 2014: Version Control Using Git
WordCamp KC 2014: Version Control Using GitWordCamp KC 2014: Version Control Using Git
WordCamp KC 2014: Version Control Using GitFrankie Jarrett
 
Get Familiar With Git
Get Familiar With Git Get Familiar With Git
Get Familiar With Git Nigam Goyal
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 
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
 

Similaire à Controle de versão com git (20)

Git basics
Git basicsGit basics
Git basics
 
GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018GIT workshop at Selenium Conference 2018
GIT workshop at Selenium Conference 2018
 
Git basics
Git basicsGit basics
Git basics
 
Hacktoberfest 2022
Hacktoberfest 2022Hacktoberfest 2022
Hacktoberfest 2022
 
What is version control software and why do you need it?
What is version control software and why do you need it?What is version control software and why do you need it?
What is version control software and why do you need it?
 
Hg for bioinformatics, second part
Hg for bioinformatics, second partHg for bioinformatics, second part
Hg for bioinformatics, second part
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Beginner's guide to git
Beginner's guide to gitBeginner's guide to git
Beginner's guide to 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!
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Git introduction for Beginners
Git introduction for BeginnersGit introduction for Beginners
Git introduction for Beginners
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How to
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
Programming with Python - Basic
Programming with Python - BasicProgramming with Python - Basic
Programming with Python - Basic
 
WordCamp KC 2014: Version Control Using Git
WordCamp KC 2014: Version Control Using GitWordCamp KC 2014: Version Control Using Git
WordCamp KC 2014: Version Control Using Git
 
Get Familiar With Git
Get Familiar With Git Get Familiar With Git
Get Familiar With Git
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With 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
 

Controle de versão com git