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?

仮想環境で開発していたら、github の差分ですべてのファイルが一行ずれちゃう泣

Posted at

Winパソコンのターミナルで git 操作、 Linux の仮想環境で開発をしていたら、差分が一行ずれて泣いた

解決策

sed -i 's/\r//' <ファイル名>

あと、普通にこれを未然に防ぐためにもリナックスなどの環境で作業する際は、WSLなどをインストールしてそっちで、git clone しましょうね。

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?