{"thread":{"id":"24469","subject":"Running git on Windows command line","startedAt":"2010-07-22T16:31:06Z","lastAt":"2010-07-22T23:00:01Z","messageCount":8,"participants":["John Dlugosz","Erik Faye-Lund"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145999","messageId":"1A9EA7E081C3FE46A0F446FFB66D10EB939B8A@FL01EXMB01.trad.tradestation.com","threadId":"24469","inReplyTo":null,"subject":"Running git on Windows command line","fromName":"John Dlugosz","fromEmail":"jdlugosz@tradestation.com","sentAt":"2010-07-22T16:31:06Z","receivedAt":"2010-07-22T16:31:06Z","isPatch":false,"sender":{"key":"jdlugosz@tradestation.com","avatar":null},"body":"In the \"CRLF behavior\" thread, I found that my command line was not seeing the global settings.  This gave different results than the git-gui and naturally is a serious problem.\n\n\n\nThis note is to record my findings and will hopefully be valuable to others using Windows.\n\n\n\nIn Windows, users may be using the built-in CMD.exe, the Powershell, some other unix-like shell besides the one that comes up under \"git bash here\", or others.\n\n\n\nI found that it worked correctly on a plain CMD shell with no personal preferences loaded or anything, even though the HOME environment variable does not exist.  It did not work right on my normal shell (happens to be TCC-le) which was set up about two years ago, until I added the HOME variable to my initialization script.\n\n\n\nThe plain command line adds \"C:\\Program Files (x86)\\Git\\cmd\" to the PATH, and the git command resolves to git.cmd in that directory.  The latest msysgit installer set up that path globally.  Perhaps an earlier version arranged things differently?  Anyway, the TCC command line had an alias set up so git resolved to \"C:\\Program Files (x86)\\Git\\bin\\git.exe\", without searching.  If the situation changed with updates, it did not affect my set up there.\n\n\n\nOne of the things the git.cmd batch file does is set the HOME variable.  It also sets the code page and sets the PATH to include a couple things along the git tree.  Two years ago, I found that no such PATH was necessary once git.exe itself was launched; it apparently knows where everything else is.  One of the things it adds to PATH, %git_install_root%\\mingw\\bin, does not even exist!  So this script may be dated.\n\n\n\nI'd be interested in finding out what the real story here is, if anyone knows more about it.\n\n\n\n--John\n\n\n\n\n\n\n\n(sorry about the footer; it is not my idea nor my choice)\n\n\nTradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.\n  If you received this in error, please contact the sender and delete the material from any computer.\n"},{"id":"146008","messageId":"AANLkTimXZtlRKlAVuFH5TzzQ1z19ddYazIRKIgGALMpZ@mail.gmail.com","threadId":"24469","inReplyTo":"1A9EA7E081C3FE46A0F446FFB66D10EB939B8A@FL01EXMB01.trad.tradestation.com","subject":"Re: Running git on Windows command line","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-07-22T18:38:41Z","receivedAt":"2010-07-22T18:38:41Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Thu, Jul 22, 2010 at 6:31 PM, John Dlugosz <JDlugosz@tradestation.com> wrote:\n> In the \"CRLF behavior\" thread, I found that my command line was not seeing the global settings.  This gave different results than the git-gui and naturally is a serious problem.\n>\n> This note is to record my findings and will hopefully be valuable to others using Windows.\n>\n> In Windows, users may be using the built-in CMD.exe, the Powershell, some other unix-like shell besides the one that comes up under \"git bash here\", or others.\n>\n> I found that it worked correctly on a plain CMD shell with no personal preferences loaded or anything, even though the HOME environment variable does not exist.  It did not work right on my normal shell (happens to be TCC-le) which was set up about two years ago, until I added the HOME variable to my initialization script.\n>\n> The plain command line adds \"C:\\Program Files (x86)\\Git\\cmd\" to the PATH, and the git command resolves to git.cmd in that directory.  The latest msysgit installer set up that path globally.  Perhaps an earlier version arranged things differently?  Anyway, the TCC command line had an alias set up so git resolved to \"C:\\Program Files (x86)\\Git\\bin\\git.exe\", without searching.  If the situation changed with updates, it did not affect my set up there.\n>\n> One of the things the git.cmd batch file does is set the HOME variable.  It also sets the code page and sets the PATH to include a couple things along the git tree.  Two years ago, I found that no such PATH was necessary once git.exe itself was launched; it apparently knows where everything else is.  One of the things it adds to PATH, %git_install_root%\\mingw\\bin, does not even exist!  So this script may be dated.\n>\n> I'd be interested in finding out what the real story here is, if anyone knows more about it.\n\nThe msysGit (the development environment for Git for Windows)\ninstaller does not modify the system-wide path, but the Git for\nWindows installer does. Perhaps you've previously been using msysGit\ninstead of Git for Windows?\n\n-- \nErik \"kusma\" Faye-Lund\n"},{"id":"146014","messageId":"1A9EA7E081C3FE46A0F446FFB66D10EB939D37@FL01EXMB01.trad.tradestation.com","threadId":"24469","inReplyTo":"AANLkTimXZtlRKlAVuFH5TzzQ1z19ddYazIRKIgGALMpZ@mail.gmail.com","subject":"RE: Running git on Windows command line","fromName":"John Dlugosz","fromEmail":"jdlugosz@tradestation.com","sentAt":"2010-07-22T20:02:54Z","receivedAt":"2010-07-22T20:02:54Z","isPatch":false,"sender":{"key":"jdlugosz@tradestation.com","avatar":null},"body":" \n\n> The msysGit (the development environment for Git for Windows)\n\n> installer does not modify the system-wide path, but the Git for\n\n> Windows installer does. Perhaps you've previously been using msysGit\n\n> instead of Git for Windows?\n\n> \n\n> --\n\n> Erik \"kusma\" Faye-Lund\n\n\n\nI've only installed \"msysgit\".  The item in the path, which I assume was added by the option to \"Git from command prompt\", with the other two choices being \"Git bash only\" and \"git and included unix tools from command prompt\".  I did notice that the exact wording, if not the choices meanings (I'm not sure), seemed to change some time within the last two years.\n\n\n\nI'm pretty sure Tortoise doesn't set the path, since it asks me where git is to be found.  I've also installed qgit.\n\n\n\nBut, I suppose that \"Git from command prompt\" has to work somehow.  I don't see anything for that other than changing the global path to point to these batch file wrappers.\n\n\n\n--John\n\n\n\n\n\n\n\n\n\n\n\n\nTradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.\n  If you received this in error, please contact the sender and delete the material from any computer.\n"},{"id":"146019","messageId":"AANLkTin-RMEOfc7FlfnQfTgzxMfV-Vq6r5ahkP6P6_SJ@mail.gmail.com","threadId":"24469","inReplyTo":"1A9EA7E081C3FE46A0F446FFB66D10EB939D37@FL01EXMB01.trad.tradestation.com","subject":"Re: Running git on Windows command line","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-07-22T20:41:23Z","receivedAt":"2010-07-22T20:41:23Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Thu, Jul 22, 2010 at 10:02 PM, John Dlugosz\n<JDlugosz@tradestation.com> wrote:\n>\n>> The msysGit (the development environment for Git for Windows)\n>> installer does not modify the system-wide path, but the Git for\n>> Windows installer does. Perhaps you've previously been using msysGit\n>> instead of Git for Windows?\n>>\n>> --\n>> Erik \"kusma\" Faye-Lund\n>\n> I've only installed \"msysgit\".  The item in the path, which I assume was added by the option to \"Git from command prompt\", with the other two choices being \"Git bash only\" and \"git and included unix tools from command prompt\".  I did notice that the exact wording, if not the choices meanings (I'm not sure), seemed to change some time within the last two years.\n>\n\nIt sounds to me like you've installed indeed Git for Windows (which is\nthe end-user product from the msysGit-project); the msysGit installers\ndoesn't show a wizard with questions, it just installs a\nself-contained development environment.\n\nYou can tell the packages apart by the name:\n* Git-something.exe and PortableGit-something.exe are installers for\nGit for Windows.\n* msysGit-netinstall-something.exe and\nmsysGit-fullinstall-something.exe are installers for msysGit, the\ndevelopment environment used to develop Git for Windows.\n\nI hope this clears up a bit.\n\n-- \nErik \"kusma\" Faye-Lund\n"},{"id":"146021","messageId":"1A9EA7E081C3FE46A0F446FFB66D10EB939DAC@FL01EXMB01.trad.tradestation.com","threadId":"24469","inReplyTo":"AANLkTin-RMEOfc7FlfnQfTgzxMfV-Vq6r5ahkP6P6_SJ@mail.gmail.com","subject":"RE: Running git on Windows command line","fromName":"John Dlugosz","fromEmail":"jdlugosz@tradestation.com","sentAt":"2010-07-22T20:55:50Z","receivedAt":"2010-07-22T20:55:50Z","isPatch":false,"sender":{"key":"jdlugosz@tradestation.com","avatar":null},"body":"> It sounds to me like you've installed indeed Git for Windows (which is\n\n> the end-user product from the msysGit-project); the msysGit installers\n\n> doesn't show a wizard with questions, it just installs a\n\n> self-contained development environment.\n\n> \n\n> You can tell the packages apart by the name:\n\n> * Git-something.exe and PortableGit-something.exe are installers for\n\n> Git for Windows.\n\n> * msysGit-netinstall-something.exe and\n\n> msysGit-fullinstall-something.exe are installers for msysGit, the\n\n> development environment used to develop Git for Windows.\n\n> \n\n> I hope this clears up a bit.\n\n> \n\n> --\n\n> Erik \"kusma\" Faye-Lund\n\n\n\nOK, \"Git-1.7.0.2-preview20100309.exe\" installed something that identifies itself as \"git version 1.7.0.2.msysgit.0\" \n\n\n\nThe web page is identified as \"msysgit\" with \"git for windows\" in small type under it, which I take to be a descriptive statement, not a product name also.  The downloads call them \"Full installer for official Git\" (what I used) and \"...if you want to hack on Git\".\n\n\n\nThe usage on this mailing list has always been \"msysgit\" as this windows variant git, as opposed to the Cygwin build.  Mentioning that is necessary for accurate help.  I mentioned msysgit as the keyword necessary when asking for help, not to mean I installed the development source.\n\n\n\n--John\n\n\n\n\n\n\n\n\n\n\n\n(ridiculous and unnecessary footer follows)\n\n\nTradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.\n  If you received this in error, please contact the sender and delete the material from any computer.\n"},{"id":"146022","messageId":"AANLkTil69VdTLldEcInFcYLwcStFnEEkoBCAWS1kd-S6@mail.gmail.com","threadId":"24469","inReplyTo":"1A9EA7E081C3FE46A0F446FFB66D10EB939DAC@FL01EXMB01.trad.tradestation.com","subject":"Re: Running git on Windows command line","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-07-22T21:04:34Z","receivedAt":"2010-07-22T21:04:34Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Thu, Jul 22, 2010 at 10:55 PM, John Dlugosz\n<JDlugosz@tradestation.com> wrote:\n>> It sounds to me like you've installed indeed Git for Windows (which is\n>> the end-user product from the msysGit-project); the msysGit installers\n>> doesn't show a wizard with questions, it just installs a\n>> self-contained development environment.\n>>\n>> You can tell the packages apart by the name:\n>> * Git-something.exe and PortableGit-something.exe are installers for\n>> Git for Windows.\n>> * msysGit-netinstall-something.exe and\n>> msysGit-fullinstall-something.exe are installers for msysGit, the\n>> development environment used to develop Git for Windows.\n>>\n>> I hope this clears up a bit.\n>>\n>> --\n>> Erik \"kusma\" Faye-Lund\n>\n> OK, \"Git-1.7.0.2-preview20100309.exe\" installed something that identifies itself as \"git version 1.7.0.2.msysgit.0\"\n>\n> The web page is identified as \"msysgit\" with \"git for windows\" in small type under it, which I take to be a descriptive statement, not a product name also.  The downloads call them \"Full installer for official Git\" (what I used) and \"...if you want to hack on Git\".\n>\n> The usage on this mailing list has always been \"msysgit\" as this windows variant git, as opposed to the Cygwin build.  Mentioning that is necessary for accurate help.  I mentioned msysgit as the keyword necessary when asking for help, not to mean I installed the development source.\n\nI'm aware of all this, but I don't think you're hearing me: the reason\nwhy the behavior has changed for you is very likely to be you having\nswitched package. Yes, the naming is confusing.\n\n-- \nErik \"kusma\" Faye-Lund\n"},{"id":"146027","messageId":"1A9EA7E081C3FE46A0F446FFB66D10EB939E1D@FL01EXMB01.trad.tradestation.com","threadId":"24469","inReplyTo":"AANLkTil69VdTLldEcInFcYLwcStFnEEkoBCAWS1kd-S6@mail.gmail.com","subject":"RE: Running git on Windows command line","fromName":"John Dlugosz","fromEmail":"jdlugosz@tradestation.com","sentAt":"2010-07-22T22:32:59Z","receivedAt":"2010-07-22T22:32:59Z","isPatch":false,"sender":{"key":"jdlugosz@tradestation.com","avatar":null},"body":" \n\n> I'm aware of all this, but I don't think you're hearing me: the reason\n\n> why the behavior has changed for you is very likely to be you having\n\n> switched package. Yes, the naming is confusing.\n\n> \n\n> --\n\n> Erik \"kusma\" Faye-Lund\n\n\n\nNo, I've only/always installed Git-1.*preview*.exe.  I still have the downloaded files.\n\n\n\n\n\n\n\n\n\n\nTradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.\n  If you received this in error, please contact the sender and delete the material from any computer.\n"},{"id":"146030","messageId":"AANLkTilaaSl7gXnu6ctU8CKn5GMp9pf7aSYmLoVAIA5H@mail.gmail.com","threadId":"24469","inReplyTo":"1A9EA7E081C3FE46A0F446FFB66D10EB939E1D@FL01EXMB01.trad.tradestation.com","subject":"Re: Running git on Windows command line","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-07-22T23:00:01Z","receivedAt":"2010-07-22T23:00:01Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Fri, Jul 23, 2010 at 12:32 AM, John Dlugosz\n<JDlugosz@tradestation.com> wrote:\n>\n>> I'm aware of all this, but I don't think you're hearing me: the reason\n>> why the behavior has changed for you is very likely to be you having\n>> switched package. Yes, the naming is confusing.\n>>\n>> --\n>> Erik \"kusma\" Faye-Lund\n>\n> No, I've only/always installed Git-1.*preview*.exe.  I still have the downloaded files.\n>\n\nOK. In that case, I think you're in better luck if you send an e-mail\nto to msysgit mailing list.\n\n-- \nErik \"kusma\" Faye-Lund\n"}]}