{"id":112,"date":"2013-06-05T19:33:54","date_gmt":"2013-06-05T19:33:54","guid":{"rendered":"http:\/\/www.rebelbot.com\/blog\/?p=112"},"modified":"2015-01-14T07:52:05","modified_gmt":"2015-01-14T07:52:05","slug":"access-gerrit-on-windows","status":"publish","type":"post","link":"http:\/\/www.rebelbot.com\/blog\/access-gerrit-on-windows\/","title":{"rendered":"Access Gerrit on Windows"},"content":{"rendered":"<p>1 . Install PuTTY from http:\/\/www.putty.org\/, install to C:\\tools\\putty<br \/>\n2 . Install Git for windows from https:\/\/code.google.com\/p\/msysgit\/, install to<br \/>\nC:\\tools\\git<br \/>\n3 . Install TortoiseGit from https:\/\/code.google.com\/p\/tortoisegit\/wiki\/Download,<br \/>\ninstall to C:\\tools\\TortoiseGit<br \/>\n4 . Copy your id_rsa.pub and id_rsa to c:\\tools\\git\\.ssh<br \/>\n5 . Open a CMD window, go to C:\\tools\\git\\bin and test the connection to the gerrit<br \/>\nserver as follows:<\/p>\n<p>ssh -v \u00a0[gerrit server]<\/p>\n<p>You should see something like:<\/p>\n<p>debug1: Entering interactive session.<\/p>\n<p>**** Welcome to Gerrit Code Review ****<\/p>\n<p>Hi [Your Name], you have successfully connected over SSH.<\/p>\n<p>Unfortunately, interactive shells are disabled.<br \/>\nTo clone a hosted Git repository, use:<\/p>\n<p>git clone ssh:\/\/[userid]@[gerrit server]\/REPOSITORY_NAME.git<\/p>\n<p>debug1: client_input_channel_req: channel 0 rtype exit-status reply 0<\/p>\n<p>6 . Run PuTTYGen (C:\\tools\\putty\\puttygen.exe) to make a PPK version of your private<br \/>\nkey.<\/p>\n<p>a) File | Load Private Key | specify location of your id_rsa<\/p>\n<p>b) Save Private Key | choose filename (e.g. id_rsa.ppk)<\/p>\n<p>c) File | Exit<\/p>\n<p>7 . Run Pageant (C:\\tools\\putty\\pageant.exe) to present your ssh key:<\/p>\n<p>a) Right-Click on Pageant icon in the system tray on lower left corner of<br \/>\ndesktop (see<br \/>\nhttp:\/\/www.dowdandassociates.com\/content\/howto-using-puttygen-and-pageant-windows<br \/>\nfor example)<\/p>\n<p>b) Add Key | Select Private Key File | point to your PPK key created in step 6b.<\/p>\n<p>c) To have Pageant start up automatically on boot, follow the steps in<br \/>\nhttp:\/\/blog.shvetsov.com\/2010\/03\/making-pageant-automatically-load-keys.html<\/p>\n<p>8 . Run TortoiseGit Settings app with : Start | TortoiseGit | Settings<\/p>\n<p>a) Set Git.exe path for MSysGit to C:\\tools\\git\\bin<\/p>\n<p>b) Hit Apply | OK<\/p>\n<p>9 . Create folder for git checkout (ex : c:\\myproject )<br \/>\n10 . Right-click on folder and choose &#8220;Git clone&#8230;&#8221; and choose URL and directory,<br \/>\nand hit OK to start sync.<br \/>\nIf you get an error, scroll up in dialog box for git command output and send<br \/>\nto the group.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 . Install PuTTY from http:\/\/www.putty.org\/, install to C:\\tools\\putty 2 . Install Git for windows from https:\/\/code.google.com\/p\/msysgit\/, install to C:\\tools\\git 3 . Install TortoiseGit from https:\/\/code.google.com\/p\/tortoisegit\/wiki\/Download, install to C:\\tools\\TortoiseGit 4 . Copy your id_rsa.pub and id_rsa to c:\\tools\\git\\.ssh 5 . Open a CMD window, go to C:\\tools\\git\\bin and test the connection to the gerrit server &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.rebelbot.com\/blog\/access-gerrit-on-windows\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Access Gerrit on Windows&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":164,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[6,4,10],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-software","category-tech"],"_links":{"self":[{"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":2,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":114,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/posts\/112\/revisions\/114"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/media\/164"}],"wp:attachment":[{"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.rebelbot.com\/blog\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}