Skip to main content

Installing Git in Ubuntu 10.10 (Maveric Meerkat)

    What is Git? 

Git is a Distributed Version Control Systems (DVCS) is a system for software revision control.
was initially developed by Linus Torvalds. For other blah blahs .. visit GIT.

Follow these steps for installing git:

1. Create a free or Premium Github account

2. After you login on the right side of the page there will be a small button named
    'New Repository' click that button and in the new page fill the appropriate
    details and click 'Create Repository'.
     
3. New Page will appear like as shown below (Don't close it just minimize it):
     

4. Now lets configure our Hackbox. Download the git.tar.bz2 package from

5. Extract the package and navigate to it and do

     >./configure
     >sudo make install

6. Check the installation by typing

     >git version
     git version 1.7.3.2


7. Generating SSH keys(Github needs it):
    In the terminal type
  >ssh-keygen -t rsa -C "xxxx@yzmail.com"
and just press enter for the next 3 statements.
Now execute the following commands :
      ravi@Hackintosh:~$ cd .ssh
      ravi@Hackintosh:~/.ssh$ gedit id_rsa.pub
The file will be opened in gedit just COPY all the contents and close it  and paste the contents in temporary document for later use.( For more info :http://help.github.com/linux-key-setup/)

8. Now(reopen browser window and goto github page) and  Copy the commands under Global setup and execute in the  in the terminal.

    >git config --global user.name "xxxxxx"
     >git config --global user.email xxx@yyy.com
Note: Substitute XXXX with appropriate info.
  
   Now create a New directory for which you want to keep track of your 
revision changes(say here 'test') by


     >ravi@Hackintosh:~$ mkdir test
    >ravi@Hackintosh:~$ cd test
    >ravi@Hackintosh:~/test$ git init
    >Initialized empty Git repository in /home/ravi/test/.git/
    >ravi@Hackintosh:~/test$ touch README
    >ravi@Hackintosh:~/test$ git add README 

    Now before proceeding to the next step just revisit the website(github.com) and in    the top right corner there is 'Admin' button Click it. A new page will be shown as below:
     

9. Now click 'Deploy keys' -> Add Another Deploy Key >
TITLE : TEST
Key : (Paste the Copied Key)
and click 'add Key'.

10. Now in the Ubuntu terminal type:

        > git commit -m 'first commit'  
        >  git remote add origin git@github.com:xxxx/test.git
        >  git push origin master
Now you have Successfully configured Git.

Other useful Links:

Comments

  1. Thanks for help with my install.

    ReplyDelete
  2. @William : Thanks for the Comment. At least Now i have 1 user replied to my post!

    ReplyDelete
  3. Thank you for the tutorial, will help, I am looking to setup git on a VPS and on my local home linux box so they both sync files together...what would you recommend?

    Once again thanks for a good article !

    ReplyDelete
  4. I am not sure this is the right answer you are looking for, but with little bit googling I found that 'gitosis' +
    http://efreedom.com/Question/1-3955118/Setting-Git-Repository-OpenSuse-VPS
    will help you.
    And also have a look at http://kjeldahl.net/d7/node/26

    ReplyDelete

Post a Comment

Popular posts from this blog

Android Studio Ninja Tip: Custom try/catch code template

As an Android Studio user, you should be familiar with the “ surround-with try-catch” functionality. Surround with try-catch When you use Ctrl+Alt+T (Linux) / Cmd+Alt+T (Mac) shortcut, the built-in try-catch generator auto generates a call to the printStackTrace() method of class Exception in the catch block. After this, we manually add some code to log the exception. e.g., Log.e(TAG, “Oops! something gone wrong”, e); As a power user, you may have used some or all of the following built-in Live templates: Live Templates You can save yourself the pain of these 5-keystrokes or repetitive typing or copy pasting the code by becoming a Ninja who uses a custom built-in try-catch template. Steps for customization Step-1 : Go to Android Studio Preferences | Editor | File and Code Templates Step-2:  Select Code | Catch Statement Body Step-3:  Replace the existing template from: ${EXCEPTION}.printStackTrace(); with: Log.e(getClass().getSimpleName(), "Ex

BSNL HUAWEI WLL Modem Installation

Hi everyone, Do u experience problem in connecting to Internet using BSNL WLL HUAWEI ETS 1201 from Ubuntu. Here is my Solution for it: Step 1 : Install Wvdial (a program that makes it easy to connect your Linux workstation to the Internet.). In Ubuntu there is a Dependency hell problem U need to download “Other Packages related to Wvdial” before installing Wvdial. I hope U will do it! After installation just check it by:   developer@ubuntu:~$ which wvdial     /usr/bin/wvdial When the above message is received then Your Wvdial installation is fine and we move to the next step Step 2 : Just run developer@ubuntu:~$sudo wvdialconf In my case I got the error as shown below: ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. Modem Port Scan<*1>: S1 S2 S3 Sorry, no modem was detected! Is it in use by anothe

Android : Sharing code and resources between UI and unit tests

As an Android developer you are already familiar with writing Unit and UI tests. This post is about "How to share the code and resources between your UI and unit tests?". I'd used "Appointments List" as an example scenario for this post. Existing Setup For UI testing, I'd have list of appointments API response in JSON format as "appointments.json" in res directory. The .json file is is converted to AppointmentsListResponse using JsonParser. androidTest/java/com/example/AppointmentScreenTest.java AppointmentsListResponse getFakeAppointmentsResponse() { InputStream in = getInstrumentation ().getContext() .getResources() .openRawResource(com.example.android.internal.test.R.raw.appointments); AppointmentsListResponse fakeResponse = new JsonParser(in).parseTo(AppointmentsListResponse. class ); } androidTest/ java/ com/example/JsonParser.java public class JsonParser String mStringToParse; private static Gson mGso