First thing first - Let's install git. There are two major ways we can install git
- install from an existing package
- install it from source or
installing from an existing package: Easy, Open up Terminal and type the following command:
$ sudo password for username: type your password here
installing from source: It’s generally useful to install Git from source, because you’ll get the most recent version. Each version of Git tends to include useful UI enhancements, so getting the latest version is often the best route if you feel comfortable compiling software from source. It is also the case that many Linux distributions contain very old packages; so unless you’re on a very up-to-date distro or are using backports, installing from source may be the best bet.
Once the installation is done you can do
this will show the version of Git you are using.
Now that you have Git on your system, you'll need to configure Git to use it. Following step you need to follow for configuring but before we start I am assuming that you already have a github account, if not please create an account in github.
Step 1: Check for SSH keys
Check the directory listing to see if you have a file named either
id_dsa.pub. If you don't have either of those files go to step 2. Otherwise, you already have an existing keypair, and you can skip to step 3.