Skip to main content
edited body
Source Link
Colin
  • 22.7k
  • 17
  • 111
  • 211

If you're using the technique described by Blundell (remove everything then add everything) on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormaliserenormalize . git add . 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Then git commit

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're using the technique described by Blundell (remove everything then add everything) on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Then git commit

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're using the technique described by Blundell (remove everything then add everything) on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalize . git add . 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Then git commit

Reference: How to remove files from repository listed in .gitignore without changing whitespace

added 16 characters in body
Source Link
Colin
  • 22.7k
  • 17
  • 111
  • 211

If you're doing thisusing the technique described by Blundell (remove everything then add everything) on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . git commit 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Then git commit

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're doing this on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . git commit 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're using the technique described by Blundell (remove everything then add everything) on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Then git commit

Reference: How to remove files from repository listed in .gitignore without changing whitespace

added 16 characters in body
Source Link
Colin
  • 22.7k
  • 17
  • 111
  • 211

If you're doing this on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . git commit 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're doing this on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Reference: How to remove files from repository listed in .gitignore without changing whitespace

If you're doing this on a windows machine you may hit an issue with all the files being modified because the line endings change. To avoid that use the following commands:

git rm -r --cached . git config --global core.autocrlf false git add --renormalise . git add . git commit 

This removes all files from the index, configures git to not change line endings, renormalises line endings and stages all the files you just removed except those specified in the .gitignore

Reference: How to remove files from repository listed in .gitignore without changing whitespace

Source Link
Colin
  • 22.7k
  • 17
  • 111
  • 211
Loading