How to use Git on Windows with PuTTY

Updated . Posted . Visible to the public.
  1. Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page Show archive.org snapshot .

  2. Run pageant.exe, find its icon inside your system tray and add your SSH key.

  3. Open up a cmd and put the full path to PuTTY's plink.exe into the GIT_SSH environment variable, e.g.:

    set GIT_SSH=D:\PuTTY\plink.exe
    

You can then use Git like you would on any sane operating system. Just go ahead and git clone, git pull, etc.

Also, you may want to add the environment variable under the Windows system properties so it survives a reboot.

Arne Hartherz
Last edit
Keywords
git, guide, using, public, private, key
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2011-06-23 13:39)