Tags

, ,

  1. Config GitHub with Putty/Pageant
    1. Install Putty from here, run PuTTY.exe and create a new SSH session to “github.com’ and save it
    2. run putty.exe -> In the “host name” field type . In the “Saved Sessions” field, give it the name and click “Save” -> Click on the “Open” button and accept the server cert.(Very important step to accept the server cert)
    3. Run PUTTYGEN.EXE generate a pair of public/priviate key pair, put your email to key comment field, copy the public key content to a text file(like ‘yourpublickey.txt’), save the private key to a text file(like ‘yourprivatekey.ppk’) at the same folder(like: c:\ssh)
    4. Click Conversation menu and choose Export OpenSSH key as “%userprofile%\.ssh\id_rsa“, save the public key as “%userprofile%\.ssh\id_rsa.pub
    5. Create a shortcut of Pageant.exe with parameter like this: ‘C:\Putty\PAGEANT.EXE c:\ssh\yourprivatekey.ppk’
    6. Run the Pageant.exe shortcut, load the ‘yourprivatekey.ppk’ file, the pageant should be run successfully with a system tray icon
    7. Install git from here, in my case, with the following configuration choices:
      • Select components window: choose all defaults
      • Adjusting your PATH environment window: Run Git and included Unix tools from the Windows Command Prompt(which by using all cygwin tools)
      • Choosing the SSH executable window: Use (tortoise) Plink and indicate the PLINK.EXE path
      • Configuring the line ending conversions window: Checkout as-is, commit as-is
    8. Sign up a new account at github.com or sign in with your existing account, add ssh-key by using the content of ‘yourpublickey.txt’
    9. Now open ‘git bash'(Which installed at step E), and you should be able to run all git commands now
  2. GitHub Tips
    1. Review last commit in current branch
      1. git show -1
      2. git log -1
Advertisements