Friday, December 7, 2012

Installing Git

View Sagar Gugwad's profile on LinkedIn
This blog provides guidance to install git on  the Ubuntu. After that we will follow the instructions to setup the project on the local machine.

  1.  Press Ctrl + Alt + T on your Ubuntu machine. This will pops up the terminal in your machines. There are multiple ways to open a terminal. Please note that using commands is powerful and a good practice, therefore we will stick to commands rather than GUI.                                                           
  2. Type in the following command
    • sudo apt-get install git-core
  3. Verify the successful installation by command, which should fetch you installation path
    • which git
  4. Configure your username using following command
    • git config --global user.name  "yourname"
  5. Configure your email using following command
    • git config --global user.email "your@email.address"
  6. Configure your diff tool by setting it upto meld (you can also use other editors, I prefer meld)
    • git config --global merge.tool meld
  7. Cloning the project in your preferred directory 
    • git clone git@github.com:geekgugi/mSIS.git
  8. Change your branch (by default it will be pointing master branch)  to dev branch by following command
    • git checkout -b dev -t origin/dev
  9. We are ready to launch for few git commands
    • git branch -a shows the branch you are in
    • git status shows changes you have made
    • git commit used to commit your changes to local 
    • git log shows commit done by other developers
For more details,  you can go through http://git-scm.com/book/en/Getting-Started which will give you clear idea to work with git.








      Building Infrastructure

      This blog assists  setting up the development infrastructure for creating mobile applications  in collaborative development. The tools used within infrastructure are mainly open source tools. Hence all are available freely on the internet. All the tools required for building the development infrastructure are mentioned below. It is better to read some concepts before downloading the tools for installation.
      1. Ubuntu is freely dialect of linux operating system. It is available for free from the website http://www.ubuntu.com/download/desktop. Please install the latest Long Term Support (LTS)  which is now 12.04. Please follow the instructions during installation. There are different available ways to install but I suggest you to install along the side of the windows if you tend to use windows in between.  It does not matter to me, since I just use ubuntu. There are also many good blogs available explaining installations for newbies. Please dig them out by yourself. People who dont love ubuntu may also install other dialects like mint, kubuntu, fedora, but it is purely matter of choice. 
      2. Git is version control tool. Assuming that we have successfully  installed ubuntu (or any other), we will move on to installing Git tools. Many of you may be aware of version control system like Clear case, SVN, Perforce etc. Similarly, Git is powerful distributed version control system available freely with opensource. Git is designed to handle different kinds of projects. Compared to remaining all tools, Git is efficient and speeder.
      3. Eclipse is free available open Integrated Development Environment. It is availble for free   http://www.eclipse.org/downloads/.  Again, it is matters of choice to install the version I suggest to go for Java EE version.
      4. Android SDK  is freely available from the google android website.
      5. Android NDK is also freely available from the android website.
      6. AgileFant  project management system used with agile scrum methodlogies, we do not need this as of now.
      7. Gerrit is freely available code review tool.
      8. Jenkins is freely available build environment tool.
      9. Bugzilla Freely available bug tracking tool. 
      In the next post, I will explain installing Git on ubuntu along with details for setting up the project.