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

Re: Run git from .bat file (Windows)

From
MHMarkus Heller <hellerm2@gmail.com>
Date
Jul 20, 2010, 18:44 UTC
Message-ID
<0vtynungcv.fsf@gmail.com>
In-Reply-To
<AANLkTik-Mk0pMKWHqzMXUcSzPexAQd2bTAPZF9Q2WKer@mail.gmail.com>
Peter Harris <git@peter.is-a-geek.org> writes:
Show 14 quoted lines
> On Tue, Jul 20, 2010 at 12:34 PM, Markus Heller wrote:
>> git add .
>> git commit -a -m "Automated commit by org-git-sync.bat on %fvar%"
>
>> The line "git add ." works, as I can see the additions when I type "git
>> status" after executing the script.  Committing doesn't work, however:
>> "git log" shows that no commit was created.
>>
>> Any idea what's going on?
>
> git itself is wrapped by a batch file on Windows. You need to "call" it. eg:
>
> call git add .
> call git commit ...
Ah, I wasn't aware of this!!
Thanks for your reply, works as advertised!!

Cheers Markus

Previous: Peter Harris
Message 3 of 3 in “Run git from .bat file (Windows)”
  1. Markus HellerJul 20, 2010
  2. Peter HarrisJul 20, 2010
  3. Markus HellerJul 20, 2010

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.