Git Client Installation and Configuration

Client Configuration: 

On client side we will create the password less keys by the below command and save these on the server side at authorized_keys folder.
# ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
Now copy the content of to the server’s authorized_keys folder. We can manually copy the ssh key or copy it through terminal by below commands.
# cd ~/.ssh/
# scp -r user@IP_Server:/tmp (user must be privileged)
# cat /tmp/ < /home/git/.ssh/authorized_keys
After the successful configuration we can ssh the server without the password.
# ssh git@server_ip
Go to the path where you want to setup your git repository on user's machine. 
# cd /home/user
# mkdir gitrepo
# cd gitrepo
      # git config --global name (Setup the username and email to maintain user history)
# git config --global
# git init
# git remote add origin git@server_ip:/pathtogit 
# touch test 
# echo test file > test
# git add test
# git commit -m “New test file”
# git push origin master
      We can create as many branches we want and commit changes to them and share our code with everyone. 
    Git Basic Commands: