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:

  2. Open a msys2 terminal. Then ...

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

  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"