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 3 years have passed since last update.

.gitattributes の設定を適用してマージ

Last updated at Posted at 2020-07-23

.gitattributes の設定を適用してマージ

git に登録済みのファイルの改行コードを正規化する という記事を書きましたが、.gitattributes の設定を行った後、git add --renormalize . した後、それを適用していないブランチに対してマージするとマージに失敗してしまいます。

以下のように -X renormalize を指定してマージすることにより、.gitattributes の設定を再適用してマージすることができます。

git merge -X renormalize マージするブランチ名

参考リンク

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?