git で chmod2019年08月17日 11時38分06秒

git も SubVersion と同じように、ファイルの権限を別途に管理する。git の場合は、ファイルの実行権限を管理するとの事だ。

新しいバージョンの git なら add --chmod で変更できる。

% 

git add --chmod=+x path/to/file
% 

git add --chmod=-x path/to/file
古いバージョンだと update-index を使った様だ。
% git update-index --chmod=-x path/to/file
% git update-index --chmod=+x path/to/file