Closed Snailedlt closed 1 year ago
Maybe we can make git do the opposite of this?
Aha, you can set up consistent line endings. Documentation here: https://code.visualstudio.com/docs/devcontainers/containers#_working-with-git
Thanks for this issue! I've run into this before with dev containers, I just forgot to include a .gitattributes
this time.
When trying to open the repo in vscode through the
Dev Container: Open Folder in Container...
command, I received an error. Turned out the way to fix the error was to change the line endings of the file (thanks ChatGPT!), which could be done in VSCode by clicking on theCRLF
symbol in the bottom right corner and selectingLF
instead ofCRLF
. I'm not sure if this data can be saved in the repo or not, but if it can, it could potensially save others from hours of troubleshooting:ChatGPT conversation showing the error and ChatGPT's answers: https://sharegpt.com/c/Eb5jO4b