Right now git-secret does not support windows operating systems. But the architecture is suitable to handle it.
I have never actually worked with windows. And I have neither time nor will to get starting.
What are the limitations?
What frameworks/external programs does it require to run bash on windows?
Is it even possible?
How many tests do pass right now (if any)?
I would highly appreciate any help on this topic!
On Windows 10 using Windows Subsystem for Linux (Beta) (Based on Ubuntu 14.04) git-secret worked out of the box 100% test pass after installing git and build-essential.
https://msdn.microsoft.com/en-gb/commandline/wsl/install_guide
I'll try in Windows 7 VM using mingw tomorrow. http://www.mingw.org/
Wow! Thats great! Are there any ways to automate this testing?
Some kind of Travis for Windows?
I've tried using Cygwin https://cygwin.com on Windows 7 but the tests are failing, I think cygwin is having trouble with my username "First Last". I'll continue trying.
For automated test how about http://docs.tea-ci.org -- Although I haven't used it. It's free for open source projects.
Hm, maybe https://www.appveyor.com/ is better?
I have never actually used neither of these.
As I see it, TeaCI is a fork of another project (drone.io). The master branch was not updated for 9 months for now.
I had no problem running the tests on cygwin.
Had bats installed and recognized in path.
git secret also seemed to work as expected (haven't tried extensively yet), only had to change _git_secret_tools.sh and uncomment the windows os check case and made it so it would use the _git_secret_tools_linux.sh
OS: Windows 10
Cygwin version: CYGWIN_NT-10.0 2.8.0(0.309/5/3) x86_64 Cygwin

@beInDev wow that's very cool!
What's you gpg, bash and git versions?
Are you interested in making a PR with:
Thanks!
Sure :)
The packages were installed from the original cygwin setup program.
I'll do a PR ASAP
For me, all commands works with just adding below lines in src/_utils/_git_secret_tools.sh for Git Bash (MINGW - Msys) on Windows 10:
MINGW*)
"$1_linux" "${@:2}"
;;
GPG version: gpg (GnuPG) 1.4.21
git version 2.13.0.windows.1
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)
"uname.exe -s": MINGW64_NT-10.0
Will it possible a add above small change atleast to support Git Bash?
Thanks
@yadavnikhil could you please make a pull request for this feature?
@sobolevn OK, I'll open for this small change, but again challenge is to have automated testing for it.
Let's leave automated tests for now. It may be a next step.
Just wanted to chime in and confirm that this is working for me out-of-the-box using WSL on Windows, which (I think?) is no longer in beta. I followed the installation instructions for the deb package and got it running immediately. 馃帀
@nozzlegear could you please share your setup? What's your OS version? How is it all bound together? (Sorry, I have seen Windows for almost 10 years)
Sure! I'm running Windows 10 Fall Creator's Update, which is build 16299, the latest one available at the time I'm writing this unless you're in the Windows beta program.
My dev environment uses a real unix bash (actually zsh) thanks to the "Windows Subsystem for Linux". WSL has had a couple different names while it was in beta, but it seems like everyone has settled on calling it WSL or Windows Subsystem for Linux. You can install it on Windows 10 by downloading the Ubuntu app from the Windows Store. This app gives us developers on Windows access to real bash, including apt/apt-get, git, gpg, vim, emacs and so on because it's running on a native Ubuntu layer (but without any VM between). It loads my .bashrc or .zshrc file on startup and behaves exactly like it would on Ubuntu.
So to use git-secret, all I had to do was open that Ubuntu app which launches the bash shell, and follow the git-secret instructions for installing the deb package. It all works perfectly, I didn't have to configure anything or do anything weird to make it work on Windows. It was just add the apt key, run sudo apt update and sudo apt install git-secret.
I'm pretty sure this will work on older versions of Windows 10 too as the WSL has been available for over a year now on several different versions of Windows 10. WSL is not available on Windows 8 or Windows 7 though.
@nozzlegear thank you!
I am going to close this, since we now support:
bash for Windows (thanks to @yadavnikhil via #123, it is now in master)If anyone finds any issues - feel free to open a new issue.
Most helpful comment
On Windows 10 using Windows Subsystem for Linux (Beta) (Based on Ubuntu 14.04) git-secret worked out of the box 100% test pass after installing git and build-essential.
https://msdn.microsoft.com/en-gb/commandline/wsl/install_guide
I'll try in Windows 7 VM using mingw tomorrow. http://www.mingw.org/