2
我已更新core.autocrlf
選項是真實的(在Windows下);現在我想重新規範我的git存儲庫。我怎樣才能做到這一點?我怎樣才能重新正常化我的git回購
我已更新core.autocrlf
選項是真實的(在Windows下);現在我想重新規範我的git存儲庫。我怎樣才能做到這一點?我怎樣才能重新正常化我的git回購
git rm --cached -r .
# Remove everything from the index.
git reset --hard
# Write both the index and working directory from git's database.
git add .
# Prepare to make a commit by staging all the files that will get normalized.
# This is your chance to inspect which files were never normalized. You should
# get lots of messages like: "warning: CRLF will be replaced by LF in file."
git commit -m "Normalize line endings"
# Commit
參考:https://help.github.com/articles/dealing-with-line-endings
不要你需要這些更改推到遠程存儲庫? – u123