logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Painting
Heart Disease
Horror Literature
Dating
Hiking & Backpacking
SF/Fantasy Books
Healthy Foods


dailyclick
All times in EST

Full Schedule
g
g Computer Careers Site

BellaOnline's Computer Careers Editor

g

Installing Git on Windows

Guest Author - Julie L Baumler

This article discusses how to install Git on Windows without requiring Cygwin. Cygwin is a set of tools that provides a GNU (Unix/Linux) tool set on windows. If you are already a Cygwin user, you probably just want to install Git within Cygwin. If you want Git to be more integrated into your Windows environment, don't know what Cygwin is, or don't want the overhead of Cygwin this tutorial is for you. The standalone Windows Git program is called msysGit. You can download msysGit from http://code.google.com/p/msysgit/downloads/list. There are several different versions available in the repository. As someone who just wants to be a git user, you want the one labeled as the "Full installer for official Git", this includes a precompiled version of Git and the other tools you will need.

Depending on your browser configuration, you will either be able to run the installer or need to save it before you can run it, either way, you want to run the installer. As you install msysGit, you will be given a number of installation options. I recommend choosing the defaults with the following exceptions. On the "Select Components" screen under "Windows Explorer Integration", choose "Context Menu Entries", "Git Bash Here" and "Git GUI Here"

msysGit installer showing the Select Components screen with Context Menu entry options


When you get to the "Adjusting Your PATH Environment Screen", I suggest choosing based on your usual command line usage patterns. If you rarely use the command line, choose "Use Git Bash Only". If you are a heavy Windows command line user (or also use Cygwin), you probably want to choose "Run Git from the Windows Command Prompt". If you are also a Unix or Linux user and like that command line, you may want to pick "Run Git and included Unix tools from the Windows Command Prompt". I would recommend the second option if you are unsure about which to choose.

msysGit installer showing the Path Environment screen


When it asks you to choose an SSH executable, choose "Use OpenSSH". This may be the default, the screen varies based on what other software you have installed on your computer. I'm not including a screen shot of this window for that reason.

Windows Explorer window showing the new menu optionsAfter setup, create a directory where you are going to keep your code. The most useful advice I got when I started programming on Windows is to create a simple easy to find and type directory like c:/code to store your source code in. Don't put in any spaces or other special characters, make it as simple as possible and keep it short and sweet. So, create your c:/code directory. Click on this directory in Windows Explorer and choose "Git Bash Here". A terminal window will open ready to run Git commands on that directory. You can use the command prompt in this window to run Git commands just as you would on a Unix or Mac command line (which is what most Git tutorials assume.) You are now ready to use Git!

Click here to see what the msysGit Bash window looks like.

msysGit page at Google code

Download msysGit



Git Magic at Amazon.comBuy Ben Lynn's book Git Magic from Amazon.com or download a copy using git clone git://repo.or.cz/gitmagic.git
Pro Git at Amazon.comBuy Scott Chacon's book Pro Git from Amazon.com or download a copy using git clone git://github.com/progit/progit.git
This site needs an editor - click to learn more!

Add Installing+Git+on+Windows to Twitter Add Installing+Git+on+Windows to Facebook Add Installing+Git+on+Windows to MySpace Add Installing+Git+on+Windows to Del.icio.us Digg Installing+Git+on+Windows Add Installing+Git+on+Windows to Yahoo My Web Add Installing+Git+on+Windows to Google Bookmarks Add Installing+Git+on+Windows to Stumbleupon Add Installing+Git+on+Windows to Reddit




Languages and Tools
Unit Testing
Computer Careers Shops
RSS
Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map


For FREE email updates, subscribe to the Computer Careers Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2013 by Julie L Baumler. All rights reserved.
This content was written by Julie L Baumler. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

g


g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2013 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor