Wednesday, February 8, 2012

Install Git under Windows

Install Git 

Windows installer here.

Under Windows, use the Bash Shell or GUI app.
You can also fetch TortoiseGIT to work with the Windows gui environment.

Menu -> Git -> Git Bash

You will see:
Welcome to Git (version 1.7.8-preview20111206)

Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

Set up a proper workspace 

Please translate the username (whome) and pathnames as appropriate.

$ pwd
/c/Documents and Settings/whome

$ mkdir workspace
$ cd workspace

$ git config --global "Who Me"
$ git config --global ""

$ git clone  some.repo.url/reponame.git

Cloning into 'reponame'...

At this point, you'll have a working local git repo that can be pulled from the remote repo, and pushed (assuming the repo url allows write access).

More cheat sheets for git can be found here:

No comments: