1 / 16

GIT version control

GIT version control. What is GIT. Have you ever wished you could travel back in time when you develop a project …? Have you ever wished you could collaborate with your friend on the same project or file at the same time…?

mora
Download Presentation

GIT version control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GIT version control

  2. What is GIT • Have youeverwishedyoucouldtravel back in time whenyoudevelop a project…? • Have youeverwishedyoucouldcollaborate with yourfriend on the same project or file at the same time…? • Everwishedyou had a fast reliable and secure backup…? • GIT offers a remote backup, a possibility to load the project just before the disaster and an easyway to collaborate with yourfellow students

  3. What do I need http://git-scm.com/ https://code.google.com/p/gitextensions/

  4. Git Extensions • Git has a console line interface • Git Extensions offers a GUI to easeyourdailywork with GIT • Git Extensions willinstall a plugin intoyourvisualstudiowhenyouinstall it • In order to do solvesome ‘mergeconflicts’ youshouldinstall kdiff3

  5. Getyourproject under control • Execise • Installboth ‘GIT’ and ‘GIT Extensions’ • Restart yourvisualstudio and locate the new plugin in the top leftcorner • Create a new project • Click on the yellow folder • Clickyes to initialize a new gitrepository • Clickcommit and addyourproject to git • Make somechanges and commitagain • Make somechanges and commitagain • Make somechanges and commitagain • Make somechanges and commitagain

  6. Congratulations – That’s it! • Now you know how to use GIT

  7. Git Extensions, .gitignore • Click “Add default ignores” button • Add a few more like .exe etc. • Click the “Save” button Version control, using Git

  8. SomeDetails… Branches • In the previousexerciseweavoidedconflictsbecausewedidn’t step back and workedalone. • Imagine wechangeour mind and wants to step back and continueworking

  9. SomeDetails… Merging

  10. Collaboration / backup • Git is a decentralizeddistributed version control system • If youcreate a remoterepositorysomewhereyou have still have an exactcopy on yourlocalmachine. • If youshareyourremoterepositiory with fellow students theyget a exactcopy of the repository.

  11. Working with a remote repositoryFigure from http://git-scm.com/book/en/Distributed-Git-Contributing-to-a-Project Version control, using Git

  12. Github.com || BitBucket.org • Github is free for open source projects (use general open port) • Bitbucket offers a freeclosedproject for 5 memebers

  13. Exercise • Make a team of 4-5 people • Create a project on one computer add it to bitbucket or github • Follow the online wizard to upload a repository • Add the rest of the team to the remoterepository • Commit to the projects and solve the conflicts…

  14. ‘Feature BranchWorkflow’

  15. Resources • A free book onlinehttp://git-scm.com/book • Videoshttp://git-scm.com/video/ • PDF: Git Magic by Ben Lynn • Console online training

  16. Using Git in Visual Studio • http://msdn.microsoft.com/en-us/library/hh850437.aspx • http://stackoverflow.com/questions/19982053/how-do-i-add-an-existing-solution-to-github-from-visual-studio-2013

More Related