Thursday, November 21, 2013



 To init github type the command followed by repository name (say TCP):
    git init TCP.git

 Then cd to this git directory
   cd TCP.git

 Then add the remote repository:
   git remote add origin

 To get the files from the TCP.git repository:
   git pull origin master

 After Changing files, commit them:
   git add .
   git commit -a
   This will open a nano editor window.
   Remove comment in modified file lines and save the file by pressing escape and "Y".

 To update the repository:
   git push origin master
   This will ask for username and password.

 To check status:
   git status