• How To Clone Git repository To Local Using Commmand Line



    Step 1 :    Go to htdocs in command line. cd htdocs

    Step 2 :  create a directory in htdocs for your project where you want to clone from git. 
                  mkdir laravel
    Step 3 : cd laravel
    Step 4 :  ssh-keygen -t rsa -C "mayeesmita@gmail.com" -b 4096
                  (mayeesmita@gmail.com is github username )
    Step 5 :   Enter file in which to save the key Provide the filename as smita-github or you can specify any filename. I provided smita-github
    Step 6 :  Enter passphrase. your identification has been saved in smita-github. Your public key has been saved in smita-github.pub.
    Step 7 : vi smita-github.pub
    Step 8 : copy the code from this and go to github and paste in ssh key section.(Go to settings. Then in left menu SSH keys, Click on that.Paste the key & give title.Then Add key)
    Step 10 :give username & password of github account
    Step 11 :git fetch
    Step 12 :git branch
  • You might also like

    1 comment:

    1. hi smita,
      i want to how to upload files from local to godaddy server through github

      ReplyDelete