Open2

Git

is2yis2y

Sourcetree で名前の変更を検知

  1. ウィンドウ右上の歯車アイコンをクリック
  2. 「高度な設定」タブをクリック
  3. 左下の「Config ファイルを編集...」をクリック
  4. [core] ignorecase = fase に設定
is2yis2y

大文字、小文字の名前の変更を反映する

git rm --cachedで削除

  1. 名前の変更
  2. 変更前のファイル名をコマンドで削除 git rm --cached
  3. ステージ
  4. コミット

ファイル

$ mv Hoge.txt hoge.txt
$ git rm --cached Hoge.txt
$ git add hoge.txt
$ git commit -m "[rename] Hoge.txt -> hoge.txt"

ディレクトリ

$ mv Hoge/ hoge/
$ git rm -rf --cached Hoge/
$ git add .
$ git commit -m "[rename] Hoge -> hoge"

参考:https://zenn.dev/aki_artisan/articles/f7a6ff22215d4c