Your SlideShare is downloading. ×
Git And Github Basics
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Git And Github Basics

1,390

Published on

Learn how to use git and github to download ProdigyView.

Learn how to use git and github to download ProdigyView.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,390
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
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. Git & Github Basics http://www.prodigyview.com
  • 2. OverviewObjectiveLearn how to clone/download ProdigyView’s repositoryand update the submodules.Requirements Installed version of git Very basic Knowledge of Unix/LinuxEstimated Time10 minutes http://www.prodigyview.com
  • 3. What is GIT?Git is a distributed version control system.This means git is a way of managing different versions ofa software release.You can use git to downloaded the latest version ofProdigyView and keep your application that usesProdigyView up-to-date.In this tutorial we will start using git from the commandline, but if you have a Git GUI, you are welcome to usethat. http://www.prodigyview.com
  • 4. GitHub ClientThe first thing you will need is a git client. If you are in aLinux environment, git is generally able to be installedfrom the command line. yum install git-core apt-get install git-coreOn Mac, you can install git using the mac ports. A goodarticle on this can be found here:http://book.git-scm.com/2_installing_git.html http://www.prodigyview.com
  • 5. Getting ProdigyView’s Example RepositoryNow that git is installed, we need to head over toProdigyView’s git repository.https://github.com/ProdigyView/ProdigyViewWhen you arrive there, you should come across a viewsimilar to the image on the next slide.
  • 6. The Repository
  • 7. Download the repository At the top of the screen, you will see a url to the repository.This is what your git client is going to use to download therepository. Copy the url and in a command line type:git clone <repo_url>Or specify a location to save the repo:git clone <rep_url> <save_destination> http://www.prodigyview.com
  • 8. SubmoduleIf you looked carefully in git, you might have noticedsomething a little strange like this: This means that the core is a submodule. A submodule is reference to another git repository. In this instance, the submodule points to a git repository that only has ProdigyView’s core libraries. Next we have to initialize the submodule and update it. http://www.prodigyview.com
  • 9. Submodule InitGo into the top level of the git repository and we are goingto initialize the submodules first and then update them.Start by typing : git submodule initThis will initialize the submodules. Next we are going toupdate them by typing:git submodule update –recursive http://www.prodigyview.com
  • 10. Git PullGreat! We know have our submodule, the coreclasses, downloaded and you are ready to begin usingProdigyView!When ever we want to update the repository using git, weperform a ‘git pull’ in the repository we want update. http://www.prodigyview.com
  • 11. Review1. Make sure your system has Git installed on it2. Go to https://github.com/ProdigyView/ProdigyView to find the repository3. Use git clone git@github.com:ProdigyView/ProdigyView.git to clone the repository4. Once downloaded, go into the top level of the repository and use a ‘git submodule init’ and ‘git submodule update – recursive’ to update the submodules. http://www.prodigyview.com

×