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:

git@github.com:yourGitHubUserName/test.git
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 -> Git Clone:

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 free viagra in the uk Without Prescription Doctor. Best Prices. Best Internet.
  • Buy Cheapest side effects of levitra Online Best Internet. Cheap Pharmacy Online.
  • Buy Cheap order cialis soft Online Internet Prices For order cialis soft! Low Prices.
  • Buy Cheapest viagra free trial pack Now Drugs, Health And Beauty. Best Internet.
  • Buy Cheapest cialis 20mg Online Discount Online Pharmacy. Best Prices.
  • Buy Cheapest cheap cialis generic mastercard Online WorldWide Shipping. Guaranteed Shipping.
  • Buying Cheap cheapest cialis online. Offshore Rx, Good Prices. Online Medical Shop.
  • best levitra price Online Without Prescription Low Prices. Best Drugstore.
  • Buy Cheap viagra texas Now Online Prices For viagra texas! Best Internet.
  • Buy Cheap viagra for sex Now Online Prices For viagra for sex! Online Medical Shop.
  • Buy Cheapest cialis canadian pharmacy Online Best Online. Guaranteed Shipping.
  • Buy Cheapest levitra one a day Online Free Viagra Pills! Best Drugstore.
  • Buy Cheap viagra cialis store Now Best Internet. Cheap Prescription Drugs.
  • Buy Cheap is levitra safer than viagra Online Best Prices. No Prescription Needed.
  • Buy Cheap levitra vs viagra Online 24/Online Pharmacy. Best Drugstore.
  • Buy Cheap viagra paypal Now Guaranteed Shipping. Discount Pharmacy Online.
  • Buy Cheap levitra order Now Free Viagra Pills! Pharmacy At The Best Price!
  • Buy Cheap soft tab cialis Now Buy Medications Online. Online Medical Shop.
  • buy female viagra Online Without Prescription Free Viagra Pills! Best Prices.
  • Buy Cheapest levitra free sample Online 24/Online Pharmacy. Best Internet.
  • Buy Cheap cialis does not work Now No Prescription Needed For Drugs. Best Prices.
  • Buy Cheapest free viagra sample Now Best Drugstore. Special Prices For free viagra sample!
  • Buy Cheap order viagra cheap Now Guaranteed Shipping. Cheap Prescription Drugs.
  • Buy Cheap what is cialis professional Now Pharmacy At The Best Price! Pharmacy Store.
  • Buy Cheap canadian levitra Now Cheap Pharmacy Online. Top Online Pharmacy.
  • Buy Cheap cheap levitra Online Best Internet. Discount Pharmacy Online.
  • Buy Cheap cialis usage instructions Now No Prescription Online Pharmacy. Low Prices.
  • Buy Cheap german viagra substitutes Now Cheap Online Pharmacy. WorldWide Shipping.
  • Buy Cheap buy viagra cialis levitra online prescription Now Best Drugstore. Discount Online Pharmacy.
  • Buy Cheapest viagra sideffects Online Low Prices. Pharmacy At The Best Price!
  • mail order viagra online Online Without Prescription Best Prices. Best Online.
  • Buy Cheap levitra 20 mg Now Pharmacy Store. Drugs, Health And Beauty.
  • Buy Cheap soft viagra Now Pharmacy Store. Order Cheap Meds Without Rx.
  • Buy Cheapest generic soft tab viagra Now Cheap Prescription Drugs. Low Prices.
  • Buy Cheap cialis medicine Now No Prescription Online Pharmacy. Best Prices.
  • Buy Cheapest cialis next day delivery Online Online Medical Shop. Best Internet.
  • Buy Cheap viagra effects on women Now Best Drugstore. No Prescription Needed.
  • Buy Cheapest viagra xanax phentermine online pharmacy Online Best Drugstore. Buy Medications Online.
  • Buy Cheapest online viagra canada Online Low Prices. Internet Prices For online viagra canada!
  • Buy Cheap viagra and ejaculation Now Best Online. All Medications Are Certificated!
  • Buying Cheapest pills viagra. Offshore Pharmacy, Good Prices. Low Prices.
  • Buy Cheap viagra timing Online Top Online Pharmacy. Online Medical Shop.
  • Buy Cheapest lowest price on levitra Now Cheap Prescription Drugs. Best Prices.
  • Buying Cheap viagra cialis levitra reviews. Mexican Pharmacy, Good Prices. Best Drugstore.
  • Buy Cheap where can i buy viagra? Now Cheap Meds Without Prescription. Low Prices.
  • Buy Cheap cheap viagra from pfizer Now Best Online. Safe And Secure Payment System.
  • Buy Cheapest online drug purchase levitra Now Drugs, Health And Beauty. Low Prices.
  • Buy Cheap genaric viagra Now Best Online. All Medications Are Certificated!
  • Buy Cheap viagra best buy Online Top Online Pharmacy. Free Viagra Pills!
  • Buy Cheap 5mg cialis generic Online Cheap Pharmacy Online. Best Internet.
  • Buy Cheap viagra blue Now No Prescription Needed. Pharmacy Store.
  • Buy Cheap levitra or viagra Now Buy Medications Online. Free Viagra Pills!
  • Buy Cheap medication levitra Now Best Drugstore. Discount Pharmacy Online.
  • Buy Cheap levitra effectiness Online Pharmacy Store. Drugs, Health And Beauty.
  • Buy Cheap difference between viagra cialas and levitra Online Pharmacy Store. Discount Online Pharmacy.
  • Buy Cheap prescription online levitra cialis viagra Now Pharmacy Store. No Prescription Needed.
  • Buy Cheap generic cheap cialis Online Best Internet. Pharmacy At The Best Price!
  • Buying Cheap viagra in the uk. Offshore Rx, Good Prices. Guaranteed Shipping.
  • Buy Cheap cheap cialis india Now Internet Prices For cheap cialis india! Best Prices.
  • Buy Cheap cialis online canada Online Pharmacy Store. Discount Online Pharmacy.
  • Buy Cheap find viagra online Now FDA Approved Rx: Online Pharmacy. Low Prices.
  • Buy Cheap information on levitra Online Pharmacy Store. Internet Prices For information on levitra!
  • Buy Cheapest ciallis or viagra Now Free Viagra Pills! Online Medical Shop.
  • viagra natural herbs Online Without Prescription Low Prices. Top Online Pharmacy.
  • Buy Cheap lowest prices viagra Now Pharmacy Store. Drugs, Health And Beauty.
  • Buy Cheapest active ingredient cialis Now No Prescription Needed. Best Online.
  • Buy Cheap generic viagra india Now 24/Internet)(safe Pharmacy. Low Prices.
  • Buy Cheap viagra vs cialis levitra Online 24/Online Pharmacy. Online Medical Shop.
  • Buy Cheap low dose cialis Online WorldWide Shipping. Buy Medications Online.
  • Buying Cheap online generic viagra. Offshore Rx, Best Prices. Top Online Pharmacy.
  • Buy Cheap cialis buy Online Cheap Prescription Drugs. Best Internet.
  • Buy Cheapest buy viagra canada Online Drugs, Health And Beauty. Best Online.
  • Buy Cheap cialis cheap prices Now Internet Prices For cialis cheap prices! Best Prices.
  • Buy Cheap cialis and blood pressure Now Best Internet. Discount Online Pharmacy.
  • Buy Cheapest natural herbal alternatives to viagra Online Internet Prices For natural herbal alternatives to viagra! Low Prices.
  • levitra vs cialis vs viagra Online Without Prescription Guaranteed Shipping. Low Prices.
  • Buy Cheap buy generic cialis Now WorldWide Shipping. Drugs, Health And Beauty.
  • Buy Cheap buy viagra cialis levitra Now Best Drugstore. Cheap Prescription Drugs.
  • Buy Cheapest buy viagra online cheap Now Cheap Prescription Drugs. Best Prices.
  • Buying Cheap levitra compare viagra. Offshore Rx, Best Prices. Top Online Pharmacy.
  • Buy Cheap viagra blood pressure Now Free Viagra Pills! Pharmacy At The Best Price!
  • Buy Cheapest headache pain propecia relief viagra Now Best Internet. Buy Medications Online.
  • Buy Cheapest cheapest cialis index Online Cheap Online Pharmacy. Low Prices.
  • Buy Cheapest cialis erectile disfunction Now 24/Online Pharmacy. Online Medical Shop.
  • Buy Cheapest cheap viagra order online Online Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheap 10mg levitra Now No Prescription Needed. Guaranteed Shipping.
  • Buy Cheapest generic brands of viagra online Now Cheap Pharmacy Online. WorldWide Shipping.
  • Buy Cheap cialis once a day Online Discount Pharmacy Online. Best Prices.
  • Buy Cheap compare cialis viagra Online Top Online Pharmacy Supplier. Low Prices.
  • Buy Cheapest cheap levitra online Now 24/Online Pharmacy. Online Medical Shop.
  • Buy Cheap viagra trial sample Now No Prescription Needed. Pharmacy Store.
  • Buy Cheap online pharmacy generic cialis Online Guaranteed Shipping. Pharmacy Store.
  • Buy Cheap cialis europe Online Pharmacy Store. 24/Online Pharmacy.
  • Buy Cheap viagra vs levitra reviews Now The Largest Internet Pharmacy. Best Internet.
  • Buy Cheapest online viagra Now Best Online. The Largest Internet Pharmacy.
  • Buy Cheap low cost alternatives and viagra Online Pharmacy Store. Online Medical Shop.
  • Buy Cheap find lowest price for cialis Now FDA Approved Rx: Online Pharmacy. Low Prices.
  • Buy Cheap free cialis samples Now Best Prices. 24/Internet)(safe Pharmacy.
  • Buy Cheapest buy viagra on line Online Discount Pharmacy Online. Best Prices.
  • Buy Cheap c-pill cheap cialis Now WorldWide Shipping. Special Prices For c-pill cheap cialis!