Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Small update:</strong> Since the Git 2.x releases, <a href="https://git-for-windows.github.io/" rel="nofollow">Git for Windows</a> is based off of <a href="http://msys2.github.io/" rel="nofollow">MSYS2</a> and available in 32 and 64 bit binary form. It still is a fork, and not interchangeable with the real MSYS2.</p> <hr> <p>One thing you must understand: msysgit (the git you are using) is a fork of msys with added git functionality. A lot of unix tools are included in the msys shell (for a full list, see the msysgit/bin folder).</p> <p>It might be possible to add additional msys tools to the msysgit bin folder, but I would not risk my head on that.</p> <p>In light of this, I think it would be optimal to just add your toolchain to the msysgit path (using the bash profile file or whatever in the msysgit tree) and just use that. If a particular utility is missing, add it from the MinGW-msys tree and hope it works OK.</p> <p>Alternatively, just use msys-git from cmd.exe. Since recent versions, it works very well (including git show, editing commit messages etc...). To do that, add the /cmd directory to PATH, and you can use all the git commands you want. This is what I do, as msys is a drag, but a necessary evil for git to work on Windows.</p> <p>UPDATE: detailed instructions to add a directory to PATH under any kind of MSYS:</p> <pre><code>export PATH=/d/MinGW/bin:$PATH </code></pre> <p>or hackishly find /etc/profile and change this section</p> <pre><code>if [ $MSYSTEM == MINGW32 ]; then export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH" else export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH" fi </code></pre> <p>to: </p> <pre><code>if [ $MSYSTEM == MINGW32 ]; then export PATH=".:/usr/local/bin:/d/MinGW/bin:/bin:$PATH" else export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH" fi </code></pre> <p>There is no cleaner way because the msys-git people disabled the fstab functionality present in vanilla msys.</p> <p>Update from Nick (what I did to make it work):</p> <p>I created file in <code>C:\Program Files\Git\etc</code> called <code>bash_profile</code>. This is the contents of the file:</p> <pre><code>export PATH=$PATH:/d/mingw/bin:/d/mingw/msys/1.0/bin </code></pre> <p>make and gcc worked.</p> <p>The <code>bash_profile</code> does not come with msysgit so you won't overwrite it if you update.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload