LoginSignup
17
16

More than 5 years have passed since last update.

git diffでcpやmvの検知をデフォルトにする

Last updated at Posted at 2014-03-02

いつもgit diff -Mgit show -Mとやって、リネームを検知して変更点を確認してきたが、めんどくさいのでリネームの検知をデフォルトにした。

~/.gitconfigに以下の項目を追加する。

[diff]
    renames = copies

copiesではなくtrueに設定すると、mv(リネーム)のみ検知するみたい。

ちなみに、コピーの検知はgit diff -Cとかgit show -Cとかすればいい。

17
16
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
17
16