The wiki tutorial describes well about to install the GIT however there are a few gliches. Therefore, I will try to avoid those and it goes as follows.
Open the terminal (or press Alt+Ctrl+T)
Go to the .ssh folder ($cd ~/.ssh
)
Generate the SSH key with your email id.
$ ssh-keygen -t rsa -C "your_email@youremail.com"
It asks for file name and password. Just press enter if you dont want to give any (altenatively you can provide above information). Now we assume you did not provide any filename or password so it will generate two files id_rsa, and id_rsa.pub
Make a copy of the generated key and store it in separate directory
mkdir github_keys
cp id_rsa* github_keys
You need to add the same keys (that you generated on your desktop/compter) to your GitHub account (online) So open your Github account setting (online) and navigate as follows.
Now it will ask for name of key, so, give a suitable name to this key so that you can recognize to which system it is connected.
It will also ask for the value of key. This was generated above and stored in file “id_rsa.pub” in your desktop.
You can open the file “id_rsa.pub” present in your desktop, with gedit. Copy its content and paste it into your GitHub account.
Now you finally add these keys to known-host list by issuing the following command.
ssh-add
The setup is complete now.
sudo apt-get install git-core git-gui git-doc
mkdir ~/GitHub
mkdir test
cd test
git remote add origin https://github.com/your_username/test
The github and the desktop directory may not have same names. For simplicity we kept both as same.
Sometime it maynot work. So another way is to create a repository online and then clone/copy it and later update it as described in steps below.
mkdir ~/GitHub
. Ignore if it exists.cd GitHub
/Home/User/GitHub>> git clone git@github.com:ajmalkoti/ANCC_MCHVRatio
Now you should be able to download all the documents within the project.
Let us assume that you made changes in the files present within project directory.
git add filename
git add .
git commit -m "some_meaningful_message"
git push origin master