LoginSignup
2
3

More than 5 years have passed since last update.

Windowsでgitの改行コード設定(Git for Windows)

Last updated at Posted at 2017-10-09

Windowsでgitを使っているとよくある改行コードのお話です。

PCをリプレイスして環境構築をした際にGit for Woindowsの改行コード設定を間違えてインストールしてしまい、
開発に使用しているDockerコンテナが起動しなくなってしまいました。

インストール時の改行コード設定
改行コードを決める画面

選択肢の2番目のCheckout as-is, commit Unix-style line endingsを選択するべきだったのですが、
実際には1番目のCheckout Windows-style, commit Unix-style line endingsを選択してしまっていたみたいです。
git config --global core.autocrlf inputで設定を変更しました。

皆さんもWindowsでGitを使うときはお気をつけ下さい。

2
3
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
2
3