Windows – How to install Git-crypt on Windows

git-crypt, windows

The git-crypt instructions exist for Linux and MacOS, but for Windows these seem to be omitted. How to install Git-crypt on Windows?

Best Solution

There are other approaches, but I like msys2:

  1. Install msys2:

    http://www.msys2.org/

  2. Open a msys2 terminal. Then ...

  3. Install g++ for windows, following the instructions here:

    https://github.com/orlp/dev-on-windows/wiki/Installing-GCC--&-MSYS2

  4. Be sure /mingw64/bin is in your path. (e.g. which g++)

  5. git clone [email protected]:AGWA/git-crypt

  6. cd git-crypt

  7. make LDFLAGS="-static-libstdc++ -static -lcrypto -lws2_32"