{"thread":{"id":"55743","subject":"getting git.exe for Android Studio on Windows","startedAt":"2021-05-20T05:30:07Z","lastAt":"2021-06-02T22:16:42Z","messageCount":4,"participants":["Somogyi Henrik","brian m. carlson","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"425036","messageId":"773cf7ee-f897-a568-92be-9ee7c2813c3b@eqnet.hu","threadId":"55743","inReplyTo":null,"subject":"getting git.exe for Android Studio on Windows","fromName":"Somogyi Henrik","fromEmail":"somogyi.henrik@eqnet.hu","sentAt":"2021-05-20T05:22:33Z","receivedAt":"2021-05-20T05:30:07Z","isPatch":false,"sender":{"key":"somogyi.henrik@eqnet.hu","avatar":null},"body":"Hello Community,\n\nI have just learnt, that I can dowload an Android app example from \nGitHub into my Android Studio.\n\nBut I do not have git.exe installed on my PC yet.\n\nWhat shall I install on my PC to have this git.exe?\n\nI wish to install only the bare minimum needed for downloading the \nexample. I would like to avoid the install of a fully fledged Git with \nall the whistles and bells to have an own \"github\" on my PC.\n\nI do not find this info on [Git - Downloads \n(git-scm.com)](https://git-scm.com/download)\n\nThanks,\n\nHenrik Somogyi\n"},{"id":"425173","messageId":"YKcI8BGHBgkanYPk@camp.crustytoothpaste.net","threadId":"55743","inReplyTo":"773cf7ee-f897-a568-92be-9ee7c2813c3b@eqnet.hu","subject":"Re: getting git.exe for Android Studio on Windows","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2021-05-21T01:12:16Z","receivedAt":"2021-05-21T01:12:22Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2021-05-20 at 05:22:33, Somogyi Henrik wrote:\n> Hello Community,\n> \n> I have just learnt, that I can dowload an Android app example from GitHub\n> into my Android Studio.\n> \n> But I do not have git.exe installed on my PC yet.\n> \n> What shall I install on my PC to have this git.exe?\n> \n> I wish to install only the bare minimum needed for downloading the example.\n> I would like to avoid the install of a fully fledged Git with all the\n> whistles and bells to have an own \"github\" on my PC.\n> \n> I do not find this info on [Git - Downloads\n> (git-scm.com)](https://git-scm.com/download)\n\nMost people using Git on Windows use the standard Git for Windows\nedition.  If you'd like a smaller one, the Git for Windows Portable\noption is also available, which can be run off a thumbdrive if you like.\n\nBecause Windows lacks a standard POSIX shell and POSIX utilities which\nGit requires to run, you need more than a single binary.  Git invokes\nthe shell when you spawn an editor and run certain types of aliases,\namong other activities, so a POSIX shell is absolutely required for Git\nto have normal functionality.\n\nEven on Unix, a reasonably functional Git installation requires\nadditional binaries, such as the HTTP helper, so having only the single\nbinary would result in substantially reduced functionality, and I'm not\naware of anyone shipping such a configuration.\n-- \nbrian m. carlson (he/him or they/them)\nHouston, Texas, US\n"},{"id":"426215","messageId":"YLdhGa8eWs9uyh4A@camp.crustytoothpaste.net","threadId":"55743","inReplyTo":"ba109d68-9953-569f-56a7-a2f557bf971f@eqnet.hu","subject":"Re: getting git.exe for Android Studio on Windows","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2021-06-02T10:44:41Z","receivedAt":"2021-06-02T10:45:20Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2021-06-02 at 05:53:55, Somogyi Henrik wrote:\n> Hello Brian,\n\nHi,\n\nPlease keep the list in CC so that everyone can see the discussion.  I'm\nnot that familiar with Windows and may be offline for a few days soon,\nso if you CC the list you may find someone who is better able to answer\nyour questions.\n\n> I have installed \"Git for Windows v2.31.1\".\n> \n> I only need the git.exe so that Android Studio can use it for dowloading a\n> sample Android app from GitHub.\n> \n> But now I got 4 git.exe programs:\n> \n> F:\\programs\\Git\n> \t\\bin\\git.exe\n> \t\\cmd\\git.exe\n> \t\\mingw64\\bin\\git.exe\n> \t\\mingw64\\libexec\\git-core\\git.exe\n> \n> Which should I specify in Android Studio as the needed git.exe?\n\nI believe you can go to a command prompt and type \"where git\" and that\nshould print the proper location.  If you've installed the portable\nversion, I believe the one in the top-level bin directory is correct.\n-- \nbrian m. carlson (he/him or they/them)\nHouston, Texas, US\n"},{"id":"426269","messageId":"nycvar.QRO.7.76.6.2106030012000.55@tvgsbejvaqbjf.bet","threadId":"55743","inReplyTo":"YLdhGa8eWs9uyh4A@camp.crustytoothpaste.net","subject":"Re: getting git.exe for Android Studio on Windows","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2021-06-02T22:16:29Z","receivedAt":"2021-06-02T22:16:42Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 2 Jun 2021, brian m. carlson wrote:\n\n> On 2021-06-02 at 05:53:55, Somogyi Henrik wrote:\n>\n> Please keep the list in CC so that everyone can see the discussion.  I'm\n> not that familiar with Windows and may be offline for a few days soon,\n> so if you CC the list you may find someone who is better able to answer\n> your questions.\n>\n> > I have installed \"Git for Windows v2.31.1\".\n> >\n> > I only need the git.exe so that Android Studio can use it for dowloading a\n> > sample Android app from GitHub.\n> >\n> > But now I got 4 git.exe programs:\n> >\n> > F:\\programs\\Git\n> > \t\\bin\\git.exe\n> > \t\\cmd\\git.exe\n> > \t\\mingw64\\bin\\git.exe\n> > \t\\mingw64\\libexec\\git-core\\git.exe\n> >\n> > Which should I specify in Android Studio as the needed git.exe?\n>\n> I believe you can go to a command prompt and type \"where git\" and that\n> should print the proper location.  If you've installed the portable\n> version, I believe the one in the top-level bin directory is correct.\n\nThe one that is guaranteed to work is the one added to the `PATH` when you\nchoose to add Git to the `PATH` via the Git for Windows installer, which\ncurrently would be `C:\\Program Files\\cmd\\git.exe`.\n\nFor backwards-compatibility, I reintroduced `C:\\Program\nFiles\\bin\\git.exe`.\n\nDo note that both of those are simply redirectors. The actual binaries are\nin `\\mingw64\\bin\\` (and the keen eye will not have missed that\n`libexec\\git-core` contains a mere hardlinked version of the `bin` one),\nbut there are too many binaries there, therefore it is not recommended to\nadd those to the `PATH`.\n\nIf in doubt, stick with what the Git for Windows installer recommends. I\ndo put in an effort trying to choose sensible defaults that work for the\nvast majority of users.\n\nCiao,\nJohannes\n"}]}