How to install Git-crypt on Windows?

14,116

Solution 1

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"

Solution 2

I would not trust the Repository git crypt for Windows that was mentioned.

I finally just managed to build git-crypt myself. And the Difference of the Size between this two Binaries is huge.

My self compiled Version is something around 370 kb compared to the 5.7 Mb from the One on GitHub.

Thanks for the Answer Thumbs Up

Solution 3

Check out git crypt for Windows. Consider whether you trust unsigned files from the internet (keep in mind git crypt itself is unsigned and you likely haven't reviewed the source)

Solution 4

For Windows 10 there is an alternative that should make things a bit easier using WSL (Windows Subsystem for Linux). This will avoid the need to compile anything.

If you do not have WSL enabled see Microsoft docs guide. I would also recommend installing the latest LTS edition of Ubuntu from the Microsoft Store app (any edition of Ubuntu will do).

Install Git Crypt

Once you have a working copy of Ubuntu for WSL, open it and run the following commands.

sudo apt-get update
sudo apt-get install git-crypt gnupg

Use Git Crypt

Now all that you need to do is access your Windows files from within Ubuntu by looking in /mnt/. Then you can use git-crypt as normal from within WSL.

Solution 5

I have downloaded git-crypt.exe from here and placed it in the C:\Program Files\Git\cmd\git-crypt.exe ! This solved my issue !

Share:
14,116

Related videos on Youtube

Author by

Bhati

Updated on June 04, 2022

Comments

Related