rogerxu / git-tips

Tips for Git
Apache License 2.0
2 stars 3 forks source link

Add executable sh file in Git #19

Open rogerxu opened 8 years ago

rogerxu commented 8 years ago

How to make sh file executable after pull from Git repository?

rogerxu commented 8 years ago

How to create file execute mode permissions in Git on Windows? - Stack Overflow

rogerxu commented 8 years ago
$ git update-index --chmod=+x foo.sh
$ git diff --staged
diff --git a/foo.sh b/foo.sh
old mode 100644
new mode 100755