Friday, March 23, 2018

How to use git

You can Install git from official web site
Basic git commands


$ git init                        //Initialize Local Git Repository   
$ git add                   //Add files to Index   
$ git status                      //Check Status of Working Tree   
$ git commit                      //Commit Changes in Index   
$ git commit -m 'message'         //Commit Changes in Index with message   
$ git push                        //push To Remote Repository   
$ git pull                        //pull Latest From Remote Repository   
$ git clone                       //clone Repository Into A New Directory   
$ git branch          //create a branch   
$ git checkout        //Switch between branch   
$ git merge           //Merge the branch