103
94

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.

Gitでファイル名&ディレクトリ名の大文字/小文字を変更方法

Posted at

Gitでディレクトリ名を小文字から大文字に変更した際に差分に認識されなかった。
また同条件が発生しそうなのでメモ。

ファイル名

# git mv -f main.cpp Main.cpp

ディレクトリ名
-f では駄目だったの一度別名に変更してから変更する
(何か他にいい方法ないのか・・・)

# git mv main _main
# git commit .
# git mv _main Main
# git commit .
103
94
3

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
103
94

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?