tags:

views:

7921

answers:

4

Hi,

I want to download this open source application, and they are using Git. What do I need to download the code base?

Update How do I change the working directory when I am using Git Bash? (I want to download the repo at a certain directory, using pwd tells me I will be downloading the repo where I don't want it.

+4  A: 

Download Git on Msys. Then:

git clone git://project.url.here
Greg Hewgill
ok that is what I was thinking, just wanted some confirmation thanks.
public static
A: 

To change working directory in GitMSYS's Git Bash you can just use cd

cd /path/do/directory

Note that:

  • Directory separators use the forward-slash (/) instead of backslash.
  • Drives are specified with a lower case letter and no colon, e.g. "C:\stuff" should be represented with "/c/stuff".
  • Spaces can be escaped with a backslash (\)
  • Command line completion is your friend. Press TAB at anytime to expand stuff, including Git options, branches, tags, and directories.

Also, you can right click in Windows Explorer on a directory and "Git Bash here".

Michael Johnson
+2  A: 

I don't want to start a "What's the best unix command line under Windows" war, but have you thought of Cygwin? Git is in the Cygwin package repository.

And you get a lot of beneficial side-effects! (:-)

Brent.Longborough
+2  A: 

Not too sure it's gonna answer your question, but you should definitely check out Git on Windows. The Gitcasts are an excellent place to learn Git.

webmat