Using git over SSH

Using git over ssh:

  1. Use studio’s “New PHP Project from git” wizard  to checkout from git with both protocols

 
OR
 

  1. To work with CLI , follow instructions in the following links to install git client:
    1. http://git-scm.com/book/en/Getting-Started-Installing-Git
    2. http://help.github.com/win-set-up-git/

 

  1. From http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html download:
    1. Plink: plink.exe
    2. Pageant: pageant.exe
  2. Start pageant and click Add Key to add your php-cloud ssh key
  3. Add a new GIT_SSH variable in your OS environment

Windows Example:

  1. Open: Computer > properties > Advanced system settings > environment variables
  2. Add GIT_SSH=<path to>\plink.exe

  1. Open git console(bash) , use the <ssh url> from my.phpcloud.com for your git commands

Examples:

  1. git clone <ssh url>
  2. git commit  –m “your message” (localy)
  3. git push <ssh url>