LoginSignup
0
0

More than 1 year has passed since last update.

【git】warning: LF will be replaced by CRLF in Gemfile.lock.の対処法

Posted at

症状

gitaddをしたところ、下記メッセージが表示されaddできませんでした。
翻訳すると、「警告:Gemfile.lockではLFがCRLFに置き換えられます。」となりました。

error
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory

解決策

GitがLF改行コードをCRLFに自動変換した事によるwarnで、それをしないようにGitに設定することで解決しました。

git config --global core.autoCRLF false

参考

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