git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* getting git.exe for Android Studio on Windows
@ 2021-05-20  5:22 Somogyi Henrik
  2021-05-21  1:12 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Somogyi Henrik @ 2021-05-20  5:22 UTC (permalink / raw)
  To: git

Hello Community,

I have just learnt, that I can dowload an Android app example from 
GitHub into my Android Studio.

But I do not have git.exe installed on my PC yet.

What shall I install on my PC to have this git.exe?

I wish to install only the bare minimum needed for downloading the 
example. I would like to avoid the install of a fully fledged Git with 
all the whistles and bells to have an own "github" on my PC.

I do not find this info on [Git - Downloads 
(git-scm.com)](https://git-scm.com/download)

Thanks,

Henrik Somogyi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting git.exe for Android Studio on Windows
  2021-05-20  5:22 getting git.exe for Android Studio on Windows Somogyi Henrik
@ 2021-05-21  1:12 ` brian m. carlson
       [not found]   ` <80336a2e-fb75-5fc1-1516-f1d1d96ff529@eqnet.hu>
  0 siblings, 1 reply; 4+ messages in thread
From: brian m. carlson @ 2021-05-21  1:12 UTC (permalink / raw)
  To: Somogyi Henrik; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

On 2021-05-20 at 05:22:33, Somogyi Henrik wrote:
> Hello Community,
> 
> I have just learnt, that I can dowload an Android app example from GitHub
> into my Android Studio.
> 
> But I do not have git.exe installed on my PC yet.
> 
> What shall I install on my PC to have this git.exe?
> 
> I wish to install only the bare minimum needed for downloading the example.
> I would like to avoid the install of a fully fledged Git with all the
> whistles and bells to have an own "github" on my PC.
> 
> I do not find this info on [Git - Downloads
> (git-scm.com)](https://git-scm.com/download)

Most people using Git on Windows use the standard Git for Windows
edition.  If you'd like a smaller one, the Git for Windows Portable
option is also available, which can be run off a thumbdrive if you like.

Because Windows lacks a standard POSIX shell and POSIX utilities which
Git requires to run, you need more than a single binary.  Git invokes
the shell when you spawn an editor and run certain types of aliases,
among other activities, so a POSIX shell is absolutely required for Git
to have normal functionality.

Even on Unix, a reasonably functional Git installation requires
additional binaries, such as the HTTP helper, so having only the single
binary would result in substantially reduced functionality, and I'm not
aware of anyone shipping such a configuration.
-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting git.exe for Android Studio on Windows
       [not found]     ` <ba109d68-9953-569f-56a7-a2f557bf971f@eqnet.hu>
@ 2021-06-02 10:44       ` brian m. carlson
  2021-06-02 22:16         ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: brian m. carlson @ 2021-06-02 10:44 UTC (permalink / raw)
  To: Somogyi Henrik; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

On 2021-06-02 at 05:53:55, Somogyi Henrik wrote:
> Hello Brian,

Hi,

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.
-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting git.exe for Android Studio on Windows
  2021-06-02 10:44       ` brian m. carlson
@ 2021-06-02 22:16         ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2021-06-02 22:16 UTC (permalink / raw)
  To: brian m. carlson; +Cc: Somogyi Henrik, git

Hi,

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
Files\bin\git.exe`.

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.

Ciao,
Johannes

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-02 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-20  5:22 getting git.exe for Android Studio on Windows Somogyi Henrik
2021-05-21  1:12 ` brian m. carlson
     [not found]   ` <80336a2e-fb75-5fc1-1516-f1d1d96ff529@eqnet.hu>
     [not found]     ` <ba109d68-9953-569f-56a7-a2f557bf971f@eqnet.hu>
2021-06-02 10:44       ` brian m. carlson
2021-06-02 22:16         ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).