GIT and Github Basic

Views:
 
     
 

Presentation Description

Learn how to download ProdigyView using Github.

Comments

Presentation Transcript

Git & Github Basics : 

Git & Github Basics http://www.prodigyview.com

Overview : 

Overview Objective Learn how to clone/download ProdigyView’s repository and update the submodules. Requirements Installed version of git Very basic Knowledge of Unix/Linux Estimated Time 10 minutes http://www.prodigyview.com

What is GIT? : 

What is GIT? Git is a distributed version control system. This means git is a way of managing different versions of a software release. You can use git to downloaded the latest version of ProdigyView and keep your application that uses ProdigyView up-to-date. In this tutorial we will start using git from the command line, but if you have a Git GUI, you are welcome to use that. http://www.prodigyview.com

GitHub Client : 

GitHub Client The first thing you will need is a git client. If you are in a Linux environment, git is generally able to be installed from the command line. yum install git-core apt-get install git-core On Mac, you can install git using the mac ports. A good article on this can be found here: http://book.git-scm.com/2_installing_git.html http://www.prodigyview.com

Getting ProdigyView’s Example Repository : 

Getting ProdigyView’s Example Repository Now that git is installed, we need to head over to ProdigyView’s git repository. https://github.com/ProdigyView/ProdigyView When you arrive there, you should come across a view similar to the image on the next slide.

The Repository : 

The Repository

Download the repository : 

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 the repository. 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

Submodule : 

Submodule If you looked carefully in git, you might have noticed something 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

Submodule Init : 

Submodule Init Go into the top level of the git repository and we are going to initialize the submodules first and then update them. Start by typing : git submodule init This will initialize the submodules. Next we are going to update them by typing: git submodule update –recursive http://www.prodigyview.com

Git Pull : 

Git Pull Great! We know have our submodule, the core classes, downloaded and you are ready to begin using ProdigyView! When ever we want to update the repository using git, we perform a ‘git pull’ in the repository we want update. http://www.prodigyview.com

Review : 

Review Make sure your system has Git installed on it Go to https://github.com/ProdigyView/ProdigyView to find the repository Use git clone git@github.com:ProdigyView/ProdigyView.git to clone the repository 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