git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Anyone running GIT on native Windows

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
May 7, 2007, 07:02 UTC
Message-ID
<463ECEF4.625F3633@eudaptics.com>
In-Reply-To
<2b7f01c78fb1$be4dc6a0$0200a8c0@AMD2500>
Aaron Gray wrote:
> What I want is to be able to work in Windows CMD and envoke .sh scripts by
> association (unfortunately you have to add the .sh on the command name
> though).

I run the mingw port exclusively from CMD without a .sh association. So exclusively that I don't even know whether any other way of using the tools even works. Of course, you have to get used to

  git status
  git fetch
  git commit
  git rebase
etc. instead of
  git-status
  git-fetch
  git-commit
  git-rebase

and I also use CMD's tab completion frequently, with leaves \ instead of / in the paths. I also quite often do

  git clone p:\public\repos\foo.git
and
  git clone p:/public/repos/foo.git
without a hitch.

Sure, you need a set of Posix tools (sed, grep, cat, wc, sort, ...) including a Bourne shell that knows how to invoke other scripts by parsing the interpreter from the first line (#!/bin/sh). (But the perl scripts (git-remote) will probably work only with MinGW's perl.)

-- Hannes
Previous: Aaron GrayNext: Marco Costalba
Message 4 of 23 in “Anyone running GIT on native Windows”
  1. Aaron GrayMay 6, 2007
  2. Junio C HamanoMay 6, 2007
  3. Aaron GrayMay 6, 2007
  4. Johannes SixtMay 7, 2007
  5. Marco CostalbaMay 7, 2007
  6. Johannes SixtMay 7, 2007
  7. A.S. BradburyMay 7, 2007
  8. Aaron GrayMay 7, 2007
  9. Johannes SchindelinMay 7, 2007
  10. Thomas GlanzmannMay 7, 2007
  11. Aaron GrayMay 7, 2007
  12. Johannes SchindelinMay 7, 2007
  13. Asger Ottar AlstrupMay 8, 2007
  14. Han-Wen NienhuysMay 9, 2007
  15. Johannes SixtMay 9, 2007
  16. Han-Wen NienhuysMay 11, 2007
  17. Johannes SixtMay 11, 2007
  18. Han-Wen NienhuysMay 11, 2007
  19. Johannes SixtMay 11, 2007
  20. Han-Wen NienhuysMay 11, 2007
  21. Aaron GrayMay 12, 2007
  22. Jan HudecMay 9, 2007
  23. Han-Wen NienhuysMay 9, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.