0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NetCommons3/app/Plugin下の各リポジトリでgit config core.filemode falseする

Posted at

NetCommons3はPluginが全部別々のGitリポジトリになってます。
開発環境でその各プラグイン全部が core.filemode trueになってたので、まとめて git config core.filemode false にしたくてシェルスクリプトでゴニョゴニョ

下記で無事目的をはたせました。

# !/bin/sh
# cd NetCommons3/app/
# bash gitCoreFileModeFalse.sh で実行
# 
dir_path="Plugin/*"
dirs=`find $dir_path -type d -maxdepth 0`

for dir in $dirs;
do
    echo $dir
    cd $dir
    git config core.filemode false
    cd ../../
done

Gist: https://gist.github.com/RyujiAMANO/48b0d6d2ea074463b17f676a6e6cea3e

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?