From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "brian m. carlson" <email@example.com>
Cc: Somogyi Henrik <Somogyi.Henrik@eqnet.hu>, firstname.lastname@example.org
Subject: Re: getting git.exe for Android Studio on Windows
Date: Thu, 3 Jun 2021 00:16:29 +0200 (CEST) [thread overview]
Message-ID: <nycvar.QRO.email@example.com> (raw)
On Wed, 2 Jun 2021, brian m. carlson wrote:
> On 2021-06-02 at 05:53:55, Somogyi Henrik wrote:
> Please keep the list in CC so that everyone can see the discussion. I'm
> not that familiar with Windows and may be offline for a few days soon,
> so if you CC the list you may find someone who is better able to answer
> your questions.
> > I have installed "Git for Windows v2.31.1".
> > I only need the git.exe so that Android Studio can use it for dowloading a
> > sample Android app from GitHub.
> > But now I got 4 git.exe programs:
> > F:\programs\Git
> > \bin\git.exe
> > \cmd\git.exe
> > \mingw64\bin\git.exe
> > \mingw64\libexec\git-core\git.exe
> > Which should I specify in Android Studio as the needed git.exe?
> I believe you can go to a command prompt and type "where git" and that
> should print the proper location. If you've installed the portable
> version, I believe the one in the top-level bin directory is correct.
The one that is guaranteed to work is the one added to the `PATH` when you
choose to add Git to the `PATH` via the Git for Windows installer, which
currently would be `C:\Program Files\cmd\git.exe`.
For backwards-compatibility, I reintroduced `C:\Program
Do note that both of those are simply redirectors. The actual binaries are
in `\mingw64\bin\` (and the keen eye will not have missed that
`libexec\git-core` contains a mere hardlinked version of the `bin` one),
but there are too many binaries there, therefore it is not recommended to
add those to the `PATH`.
If in doubt, stick with what the Git for Windows installer recommends. I
do put in an effort trying to choose sensible defaults that work for the
vast majority of users.
prev parent reply other threads:[~2021-06-02 22:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-20 5:22 Somogyi Henrik
2021-05-21 1:12 ` brian m. carlson
[not found] ` <firstname.lastname@example.org>
[not found] ` <email@example.com>
2021-06-02 10:44 ` brian m. carlson
2021-06-02 22:16 ` Johannes Schindelin [this message]
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this inbox:
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).