TechBlog masa

  • Top
  • Posts
  • Profile
2025-01-09
SWE
gitで急に、全行を編集したと認識された時の対応gitで急に、全行を編集したと認識された時の対応
Git / GitHub

likes: 0

Unsupported Block: table_of_contents

LFが基本。

WindowsではデフォルトでCRLFになっているので注意。

 

Unsupported Block: heading_2
  1. .gitattributesファイルで設定

ファイルをルートディレクトリに置いて、以下のように指定。

すると、すべてのファイルでLFになる。

* text=auto eol=lf

 

  1. 過去にコミットしたファイルにもLFを適用する
git add —renormalize .
git commit

 

UTF-8が基本。

 

breadcrumb予定地
profileCard予定地

SideBarPage

共有ボタン予定地
他ボタン予定地