diff --git a/bin/git_executable.sh b/bin/git_executable.sh new file mode 100755 index 0000000..c434a2b --- /dev/null +++ b/bin/git_executable.sh @@ -0,0 +1,7 @@ +#!/bin/bash +if [ -n "$1" ]; then + chmod +x $1 + git update-index --chmod=+x $1 +else + echo "Provide a target file to make executable" +fi