git - trim whitespace

前端 未结 4 901
南方客
南方客 2021-02-02 12:51

I\'ve accidentally put some whitespace in my initial commit - it shows up red in git diff --color. What\'s the best way to get rid of the existing whitespace and ho

4条回答
  •  野的像风
    2021-02-02 13:16

    See this thread git remove trailing whitespace in new files before commit on using git rebase to strip whitespace from files that you've already committed.

提交回复
热议问题