How to install and use git

Hi Friends today I have installed and used git to download content from repository hosting . Here I have illustrated the commands that I have used on both the versions of linux

to install git on debian linux use the command :

$yum install git-core

for ubuntu linux use :

$ apt-get install git-core

To generate a key use :

ssh-keygen -t rsa

And after use the enter key 3 times so the git will use the default commands

To downlad the content use command :

git clone git:(url to download)