Want to download a Git repository, what do I need (windows machine)?

WindowsGit

Windows Problem Overview


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.

Windows Solutions


Solution 1 - Windows

Download Git on Msys. Then:

git clone git://project.url.here

Solution 2 - Windows

Install mysysgit. (Same as Greg Hewgill's answer.)

Install Tortoisegit. (Tortoisegit requires mysysgit or something similiar like Cygwin.)

After TortoiseGit is installed, right-click on a folder, select Git Clone..., then enter the Url of the repository, then click Ok.

This answer is not any better than just installing mysysgit, but you can avoid the dreaded command line. :)

Solution 3 - Windows

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! (:-)

Solution 4 - Windows

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 (</code>)
  • 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".

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionpublic staticView Question on Stackoverflow
Solution 1 - WindowsGreg HewgillView Answer on Stackoverflow
Solution 2 - WindowsJames LawrukView Answer on Stackoverflow
Solution 3 - WindowsBrent.LongboroughView Answer on Stackoverflow
Solution 4 - WindowsMichael JohnsonView Answer on Stackoverflow