Controle de versão com git

  • 127 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
127
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Version Control with
  • 2. pt.1
  • 3. $ 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
  • 4. Intro● Distributed revision control software● Open-source● Written in C● Multi platform
  • 5. Linus Torvalds
  • 6. Junio Hamano
  • 7. Tech Talk about Githttp://www.youtube.com/watch?v=4XpnKHJAok8
  • 8. Shared!
  • 9. Distributed!
  • 10. Basic Commandsconfig● git config --global user.name "Your Name"● git config --global user.email "Your E-mail"● git config --global color.ui true
  • 11. Basic Commandscreating a repository● git initcloning a repository● git clone repo_url
  • 12. Basic CommandsAdd a file● git add path/to/fileCommit a file● git commitor● git commit -m "commit message"
  • 13. Difference between Svn commit andgit commit● Git commits are locals!● Local repositories are git repositories.● No Internet needed!● You dont need public access to the repository!● So, to a better version control...
  • 14. Add a remote repository● git remote add repository_name url
  • 15. Upload your code● git push repository_name branch_name
  • 16. Updating your codegit pull repository_name branch_name
  • 17. Git branchingEvery local repository is a branch.but branching is a good practice.● git branch branch_name● git checkout branch_name● git branch -D branch_name
  • 18. Merging● git checkout branch_name● git merge another_branch_name
  • 19. questions?
  • 20. @_renatoOliveirarenato@labcodes.com.br