Make Git files executable

You can check files with correct permissions into Git to be able to run them on the continuous integration server right after checkout. Setting the right properties in the git-index will force Git to checkout the file and set the right file permissions.

Set the core.fileMode in the git configuration to false. The means: Do not ignore the file mode.
Then update the git-index with –chmod for your file, commit and push the file to the repository.

See: git-update-index

This entry was posted in Coding and tagged by Willem Cheizoo. Bookmark the permalink.

About Willem Cheizoo

I'm Willem Cheizoo, since 2012 I work as a Java Software Developer at JDriven. I am constantly searching for more effective ways of implementing and building good quality software. By writing blogposts I am sharing my knowledge and experience with you.

Leave a Reply

Your email address will not be published. Required fields are marked *