Jan 02

For a while I was using git and github for uploading my code and projects. ( In case you yet not familiar with it – github is really a great place for storing your code and collaborating/ sharing your work with others, so please check it out.)

I was using Ubuntu OS and ofcourse – on Linux machine git is basically installed with a single command and SSH keys are created very easy.

Windows users had the option for using stuff like cygwin, to be able to get the git functionality under windows, which at some point could be a little anoying for the GUI type of guys :) …Well  not anymore!

After switching back to windows I was amazed how much TortoiseGit has improved for the last few years, and how easy it is now for the windows users to use git :)

In this tutorial I’ll cover the following:

  • how to install everything you need to setup Git and TortoiseGIT on your lovely Windows OS.
  • how to generate a private key with PuttyGen and set this up on your github account
  • how to initially create your repo at github and clone the repo to your local machine

OK – lets do this !

Step 1. Install msysgit

First thing you need to do is to get a distribution of git for windows. I this tutorial I use msysgit.

You can also try cygwin – which is very popular linux shell emulation for windows, but I haven’t yet tested it so I cannot currently recommend using it.

You can download msysgit at: http://code.google.com/p/msysgit/downloads/lis
The file that you need should look for is: msysGit-fullinstall-XXX-preview-some-date – where XXX is the version.  Download the latest version and install it. The unpackaging and building process might take a several minutes depending on your CPU speed – so don’t worry about this.

installing-msysGit

installing-msysGit

Step 2. Install TortoiseGit

Ok after we are ready with this please proceed and install tortoisegit:

Get it at:
http://code.google.com/p/tortoisegit/downloads/list

Download and install the latest version and proceed.

Tortoise-Plink

Tortoise-Plink

You will be asked to choose between Plink and OpenSSH. Choose Plink, so that you could ease the process of generating SSH keys. Ok after the install is finished you can reboot your machine (probably won’t be required but just in case).

Step 3.Basic config of TortoiseGit

Now the TortoiseGit Context should appear:

right-click-tortoise-git

Tortoise-settings1

Please check if MSysGit Git.exe path is pointing to the installation of your installation of msysgit (Step 1.)

Also check if TortoisePLink is correctly setup – this should be entered by default – but it’s good to know where this is entered, so that you could have a basic idea of the authentication part.

Make sure to go into Git -> Config section, and to add your name and email address – if you are using Github – make sure to add the same credentials that you are using for Github as well.

Ok now it’s time to generate some private keys. Please go to Start-> All Programs -> TortoiseGit -> PuttyGen. The executable is usually located at  C:\Program Files\TortoiseGit\bin\puttygen.exe if you installed TortoiseGit into default directory.

putty-generate-key

Just use all the default settings – as in the screenshot above (SSH-2 RSA 1024bit) and generate a private key. Then save it somewhere on your harddrive – where you wont forget it or delete it. The password is optional. Also copy the text at the key section (as shown in the screenshot – mark it and copy it – because you’ll need this for the next step)

Step 4.  Setting up the GitHub account to use private key

Go to your account at https://github.com/ and then go to Account settings -> SSH Public Keys or go directly to https://github.com/account/ssh

github-ssh-keys

Add a description title for this key and paste it’s value from the previous step.

Ok now you can create a new repository or use one of your existing ones (if you have any).

Go to https://github.com/repositories/new and create a new repo. Name it for example ‘test’. Now go to https://github.com/account/repositories and then click on the test repo. The new address of your repository should be:

<strong>git@github.com:yourGitHubUserName/test.git</strong>
So let's test how it works now. We'll try to 'download' the test repo we created using the git clone command. For those of you who've used SVN - this is similiar to the SVN checkout command.
Create some empty folder on your harddrive and hit Rightclick -&gt; Git Clone:
<a href="http://georgi-mitev.com/wp-content/uploads/git-clone.png"><img class="alignnone size-full wp-image-325" title="git-clone" src="http://georgi-mitev.com/wp-content/uploads/git-clone.png" alt="" width="487" height="363" /></a>

Make sure that the path to test repo is correct, also add the path to your ppk file (the file we created in Step3.)

You should get success message like this:

git-clone-success

Great !! You’ve cloned your first repo :)

If you are not familiar with git at all I suggest you start with learning the follwing commands

branch, add, commit, push, pull  - these are the most basic git commands that can get you started.

Please check also these great sources on working with git:

http://book.git-scm.com/

http://gitcasts.com/

http://scottchacon.com//2011/08/31/github-flow.html

if you need to migrate your current SVN repo to git -> check the link below

http://www.jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/

If you have any additional questions or requests please contact me or add your question in the comment section below.

I’ll write additional tutorial on adding correctly written gitignore file.

Thank you fellas – see you next time :)

Leave a Reply

*

Spam Protection by WP-SpamFree

  • Buy Cheap cialis vs viagra vs levitra Online Pharmacy Store. Guaranteed Shipping.
  • Buy cialis discoun Without Prescription Doctor. Pharmacy Store. Low Prices.
  • Buy Cheap cialis rx online Online Best Online. Drugs, Health And Beauty.
  • Buy Cheapest long term effects of viagra Online Low Prices. Order Cheap Meds Without Rx.
  • Buy Cheap is viagra good Online Pharmacy Store. Discount Pharmacy Online.
  • Buy Cheap levitra vardenafil hcll Now Special Prices For levitra vardenafil hcll! WorldWide Shipping.
  • Buy Cheapest buy viagra online in uk Now Best Internet. 24/Online Pharmacy.
  • Buy Cheap impotence levitra Now Cheap Prescription Drugs. Free Viagra Pills!
  • Buy Cheap buy viagra cialis levitra online prescription Now Cheap Prescription Drugs. Pharmacy Store.
  • Buy Cheap intensify effects of levitra Now Low Prices. All Medications Are Certificated!
  • Buy Cheap cialis wholesale online Online No Prescription Needed. Free Viagra Pills!
  • cialis softtab Online Without Prescription Low Prices. Free Viagra Pills!
  • Buy Cheapest cheap viagra soft tablet Online Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheapest long term cialis use Now Discount Online Pharmacy. Best Online.
  • Buy Cheapest where buy cialis Online Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheapest levitra prescriptions Now Pharmacy Store. Cheap Online Pharmacy.
  • Buy Cheap cialis online purchase Online Top Online Pharmacy. Cheap Pharmacy Online.
  • Buy Cheap cialis usa pharmacy Now Best Prices. Cheap Meds Without Prescription.
  • Buy Cheapest drug impotence levitra Now The Largest Internet Pharmacy. Best Prices.
  • Buy Cheap mg levitra Online Best Drugstore. Top Online Pharmacy.
  • Buy Cheap cheap viagra Now Discount Pharmacy Online. Top Online Pharmacy.
  • Buy Cheapest buy cialis from canada Online Low Prices. 24/Online Pharmacy.
  • Buy Cheapest cialis online sale Now Best Online. 24/Internet)(safe Pharmacy.
  • Buy Cheap cialis levitra vs Online Best Internet. Cheap Prescription Drugs.
  • Buy Cheap viagra pay with paypal Now Best Drugstore. 100% Satisfaction Guaranteed.
  • Buy Cheapest cheapest cialis erectile dysfunction pill Now Best Prices. Special Prices For cheapest cialis erectile dysfunction pill!
  • Buy Cheapest indian viagra Online Best Drugstore. Buy Medications Online.
  • teens taking viagra Online Without Prescription Best Internet. Best Prices.
  • Buy Cheap levitra tablet Online Best Online. Drugs, Health And Beauty.
  • Buy Cheap cheap herbal viagra Now No Prescription Needed For Drugs. Low Prices.
  • Buy Cheapest buy online viagra viagra Now Pharmacy Store. 24/Online Pharmacy.
  • Buy Cheap buy viagra now online Online Pharmacy Store. Online Medical Shop.
  • Buy Cheapest find cialis cheap Now 24/Online Pharmacy. Top Online Pharmacy.
  • Buy Cheapest viagra online in canada Now WorldWide Shipping. 24/Online Pharmacy.
  • Buy Cheap online viagra store Online Special Prices For online viagra store! Best Internet.
  • Buy Cheapest buy levitra us Now Safe And Secure Payment System. Low Prices.
  • Buy Cheap viagra discounts Online Internet Prices For viagra discounts! Best Internet.
  • Buy Cheapest genric viagra Online Online Medical Shop. Best Online.
  • Buy Cheap cialis impotence drug eli Online Cheap Pharmacy Online. Best Drugstore.
  • Buy Cheap buy pfizer viagra Online Best Online. Discount Pharmacy Online.
  • Buy Cheap buy brand name cialis Online Buy Medications Online. Pharmacy Store.
  • Buy Cheapest buy levitra vardenafil Online Drugs, Health And Beauty. Best Online.
  • Buy Cheap use levitra Now Best Online. Cheap Meds Without Prescription.
  • Buy Cheapest american cialis Now Online Prices For american cialis! Best Drugstore.
  • Buy Cheapest cheapest generic cialis Now Pharmacy At The Best Price! Low Prices.
  • Buy Cheap viagra cialis cheap Now No Prescription Online Pharmacy. Low Prices.
  • Buy Cheap order cialis without prescription Now Cheap Meds Without Prescription. Best Prices.
  • Buy Cheapest name cialis Now Pharmacy At The Best Price! Best Prices.
  • Buy Cheapest free viagra samples Online Special Prices For free viagra samples! Best Prices.
  • Buy Cheap no prescription viagra Now Discount Pharmacy Online. Top Online Pharmacy.
  • Buy Cheapest buy generic viagra cheap Now Best Drugstore. Drugs, Health And Beauty.
  • Buy Cheap cialis paypal Now Cheap Pharmacy Online. Cheap Online Pharmacy.
  • Buy Cheap viagra purchase on line Now No Prescription Needed. Best Drugstore.
  • Buy Cheap cialis ejaculation Online Best Prices. Buy Medications Online.
  • Buy Cheap viagra free samples Now 24/Online Pharmacy. WorldWide Shipping.
  • Buy Cheap levitra table Now Top Online Pharmacy Supplier. Best Prices.
  • Buy Cheap generic cialis tadalafil Online Discount Pharmacy Online. Best Prices.
  • Buy Cheap ordering cialis online Online Top Online Pharmacy. WorldWide Shipping.
  • Buy Cheapest levitra one a day Online Guaranteed Shipping. WorldWide Shipping.
  • Buy Cheap generic levitra cheap Online WorldWide Shipping. Guaranteed Shipping.
  • Buy Cheapest levitra cilias effects Online Pharmacy Store. No Prescription Needed.
  • Buy Cheap viagra cialis canadian pharmacy Online Best Prices. 100% Satisfaction Guaranteed.
  • Buy Cheapest buy sublingual viagra on the internet Online Special Prices For buy sublingual viagra on the internet! Low Prices.
  • Buy Cheapest viagra levitra cialis stuffy nose Online WorldWide Shipping. Pharmacy Store.
  • Buy Cheap substitute for viagra Now Best Internet. Cheap Prescription Drugs.
  • Buy Cheap information on levitra Now Free Viagra Pills! Drugs, Health And Beauty.
  • Buy Cheapest cheap order prescription viagra Online Best Internet. No Prescription Needed.
  • Buy Cheap cialis pro Online Best Drugstore. Drugs, Health And Beauty.
  • Buy Cheapest cialis online generic Online Best Drugstore. Top Online Pharmacy.
  • cheap cialis sale online Online Without Prescription Best Internet. Best Prices.
  • Buy Cheapest info levitra Now Cheap Pharmacy Online. Best Drugstore.
  • Buy Cheapest cheap no prescription viagra Now Internet Prices For cheap no prescription viagra! Best Online.
  • Buy Cheapest india cialis Online Guaranteed Shipping. Best Drugstore.
  • Buy Cheapest pfizer viagra discount Online Cheap Prescription Drugs. Best Online.
  • Buy Cheapest generic levitra effective Online Low Prices. Discount Online Pharmacy.
  • Buy Cheapest levitra one a day Online Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheap cialis dosage Now 100% Satisfaction Guaranteed. Best Internet.
  • Buy Cheap levitra drug interactions Online Guaranteed Shipping. WorldWide Shipping.
  • levitra sperm pills Online Without Prescription Best Prices. Best Online.
  • Buy Cheap viagra alternative Online The Largest Internet Pharmacy. Best Prices.
  • Buy Cheap viagra oral sex Now Online Prices For viagra oral sex! WorldWide Shipping.
  • Buy Cheap cialis multiple orgasms Now FDA Approved Rx: Online Pharmacy. Best Online.
  • Buy Cheapest cheap cialis Now Drugs, Health And Beauty. Best Internet.
  • Buy Cheap woman take viagra Now Low Prices. The Largest Internet Pharmacy.
  • Buy viagra discount sales Online Without Prescription. Best Drugstore. Low Prices.
  • what to know about viagra jelly Online Without Prescription Low Prices. Guaranteed Shipping.
  • Buy Cheap levitra erectile dysfunction Now Best Prices. Pharmacy At The Best Price!
  • Buy Cheap cialis pricing Now WorldWide Shipping. Online Prices For cialis pricing!
  • Buy Cheap cheap viagra Now Best Online. Top Online Pharmacy Supplier.
  • Buying Cheap free samples viagra. Mexican Rx, Good Prices. 24/Online Pharmacy.
  • Buy cialis soft tabs cheap Online Without Prescription. Best Prices. Best Online.
  • Buy Cheap cialis cheap overseas Now Best Internet. Discount Pharmacy Online.
  • Buy Cheapest cialis prescription Now Buy Medications Online. Best Prices.
  • Buy Cheap viagra sublingual Online Drugs, Health And Beauty. Best Prices.
  • Buying Cheap levitra commercial. Mexican Pharmacy, Good Prices. Best Drugstore.
  • Buy Cheapest levitra drug interactions Now Cheap Online Pharmacy. Best Internet.
  • Buy Cheapest levitra uk Now Online Prices For levitra uk! Pharmacy Store.
  • Buy Cheapest viagra blue Now Safe And Secure Payment System. Low Prices.
  • Buy Cheapest viagra drug interaction Now Order Cheap Meds Without Rx. Best Prices.
  • Buy Cheap viagra soft tabs instructions Now WorldWide Shipping. Online Medical Shop.