Quantcast
Channel: 技术笔记 –龙堂
Viewing all articles
Browse latest Browse all 40

GitHub Tips

$
0
0
  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 PUTTYGEN.EXE generate a pair of public/priviate key pair, 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)
    3. Create a shortcut of Pageant.exe with parameter like this: ‘C:\Putty\PAGEANT.EXE c:\ssh\yourprivatekey.ppk’
    4. Run the Pageant.exe shortcut, the pageant should be run successfully with a system tray icon
    5. 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
    6. 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’
    7. Now open ‘git bash’(Which installed at step E), and you should be able to run all git commands now
  2. GitHub Tips

 



Viewing all articles
Browse latest Browse all 40

Trending Articles