Saturday 21 January 2017

GIT Hub - Commands


Install GIT Setup in Windows or Linux OS.

Right Click and you can see option Git Bash here. Click on it you will get a git command prompt.

Few Basic Commands.

1. To Know the Status

    Command: git status

2. To Add Files to Git Repository

    Command: git add --a

3. To Commit the Files to Repository

   Command: git commit -am <Comments>
 
   Example:     git commit -am "Modified ReadMe file"

4. To Pull the Files from Repository

    Command: git pull
 
    It will ask for the password provide and proceed further.

5. To Push the Files to Repository

    Command: git push

     It will ask for the password provide and proceed further.

6. Go to your GIT Repository and check for the modifications you have done are reflected or not.

Thank You!!!!


Happy Learning!!!!


No comments:

Post a Comment