til.arktronic.com

Things I've learned, documented quickly

20 April 2025

Committing executable scripts in Git on Windows

by arktronic

I finally learned how to commit a shell script in Git on Windows that will have its executable bit set in Linux when the same repo is used there:

git update-index --chmod=+x scriptname.sh

That’s all that needs to happen before you do the normal commit flow. Easy!

tags: git - windows - linux