GitHub上传文件输出麻烦

问题描述 投票:0回答:1

将我的项目文件上传到 GitHub 后,与 VS Code 上线服务器相比,整个输出变得更大。我输出的每个项目文件都在改变。为什么会出现这种情况?

html css visual-studio-code github bootstrap-5
1个回答
0
投票

您可能遇到尺寸问题和/或 eol(行尾)问题。

您需要检查:

  • 你的
    .gitignore
    ,将其与像这个
  • 这样的Bootstrap项目的典型项目进行比较
  • 您的
    .gitattributes
    ,例如 这个网络版(证书已于
    gitattributes.io
    过期,但它仍然是这些文件的良好来源)
*.bash            text eol=lf
*.bat             text eol=crlf
*.cmd             text eol=crlf
*.coffee          text
*.css             text diff=css
*.htm             text diff=html
*.html            text diff=html
...
© www.soinside.com 2019 - 2024. All rights reserved.