Clarification of status of git with Windows cmd.exe?

1,019 views
Skip to first unread message

Scott Stafford

unread,
Dec 14, 2018, 1:40:45 PM12/14/18
to git-for-windows
Hi - I saw some discussion, but I am still confused by what the intended deprecation is, that is mentioned in the Release Notes. I see this:

Please note: Using Git from Command Prompt (cmd.exe, Git CMD) is deprecated as of this Git for Windows version. The default is to have git.exein the PATH, so there is no noticeable difference between cmd.exe and using the Git CMD start menu shortcut. It is impossible to turn off Command Prompt's behavior where it picks up any git.exe in the current directory, so let's discourage the use of Git CMD. Users who dislike Git Bash should switch to PowerShell instead.

Are you simply saying:
1. Git for Windows may sometime stop shipping "Git CMD (Deprecated)" (which runs "git-cmd.exe")
or
2. Git for Windows no longer supports invoking git.exe from a normal (cmd.exe) Windows Command Line prompt?

My personal opinion is that (1) is fine as far as I'm concerned specifically, I didn't even know it was there and don't much care.  But (2) would be quite saddening and would drastically alter my workflow.  

Mateusz Loskot

unread,
Dec 14, 2018, 2:42:49 PM12/14/18
to git-for-windows
On Fri, 14 Dec 2018 at 19:40, Scott Stafford <scott.s...@gmail.com> wrote:
>> Please note: Using Git from Command Prompt (cmd.exe, Git CMD) is deprecated as of this Git for Windows version. The default is to have git.exein the PATH, so there is no noticeable difference between cmd.exe and using the Git CMD start menu shortcut. It is impossible to turn off Command Prompt's behavior where it picks up any git.exe in the current directory, so let's discourage the use of Git CMD. Users who dislike Git Bash should switch to PowerShell instead.
>
>
> Are you simply saying:
> 1. Git for Windows may sometime stop shipping "Git CMD (Deprecated)" (which runs "git-cmd.exe")
> or
> 2. Git for Windows no longer supports invoking git.exe from a normal (cmd.exe) Windows Command Line prompt?
>
> My personal opinion is that (1) is fine as far as I'm concerned specifically, I didn't even know it was there and don't much care. But (2) would be quite saddening and would drastically alter my workflow.

From https://groups.google.com/d/msg/git-for-windows/SFqyASXbGxE/0G8jMqCbCQAJ
where Johannes replied to my question:

```
"> Does this also mean the installer option to "Use git from the Windows
> Command Prompt" disappeared?

No, this is the default I talked about when I said "The default is to have
git.exe in the PATH anyway"."
```

and laster mentioned "Git CMD is deprecated"

So, to me, that is the (1), not (2).

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

Johannes Schindelin

unread,
Dec 17, 2018, 9:58:16 AM12/17/18
to Scott Stafford, git-for-windows
Hi Scott,
It won't even be option 1. It will simply stop to install the shortcut
into the Start Menu. But `git-cmd.exe` will still be in the installed
files.

Ciao,
Johannes

>
> --
> You received this message because you are subscribed to the Google Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
> To post to this group, send email to git-for...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/c41e107d-93b7-4e99-bfb3-e58d13a4105e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

Scott Stafford

unread,
Dec 17, 2018, 10:33:49 AM12/17/18
to git-for-windows
Excellent news, thanks so much for the replies (and all the great work you guys put in!)

Possibly rewording this:
> Using Git from Command Prompt (cmd.exe, Git CMD) is deprecated as of this Git for Windows version.

to something more like what you just said:
> We may stop installing the Git CMD shortcut into the Start Menu.

would be an improvement.  When I read that first sentence the first time, it stopped my heart for a moment.  ;)

Johannes Schindelin

unread,
Dec 17, 2018, 11:13:49 AM12/17/18
to Scott Stafford, git-for-windows
Hi Scott,

On Mon, 17 Dec 2018, Scott Stafford wrote:

> Excellent news, thanks so much for the replies (and all the great work you
> guys put in!)
>
> Possibly rewording this:
> > Using Git from Command Prompt (cmd.exe, Git CMD) is deprecated as of this
> Git for Windows version.
>
> to something more like what you just said:
> > We may stop installing the Git CMD shortcut into the Start Menu.
>
> would be an improvement. When I read that first sentence the first time,
> it stopped my heart for a moment. ;)

Please do realize that the relationship between the maintainer and the
contributors is 1:N. As such, you might think that leaving this task
to me (instead of opening a PR) could not possibly put a burden on my
shoulders. But it does.

Thanks,
Johannes
> > an email to git-for-windo...@googlegroups.com <javascript:>.
> > > To post to this group, send email to git-for...@googlegroups.com
> > <javascript:>.
> > > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/git-for-windows/c41e107d-93b7-4e99-bfb3-e58d13a4105e%40googlegroups.com.
> >
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
> To post to this group, send email to git-for...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/41b0f47d-c0b3-4830-8721-e8628c53c741%40googlegroups.com.

Scott Stafford

unread,
Dec 17, 2018, 12:42:01 PM12/17/18
to git-for-windows
Reply all
Reply to author
Forward
0 new messages