我亏一点 - git
type: channel
link: https://www.000081.xyz/index.php/category/git/
items: git 只需要拉取readme.md文件
items: git 报错OpenSSL SSL_read: Connection was reset, errno 10054
items: git add . 报错The file will have its original line endings in your working directory

git 只需要拉取readme.md文件
type: item
date: 2023-02-09T11:11:56+00:00
description: AI摘要 若需仅拉取仓库中的README.md文件，可使用`git checkout origin/master -- README.md`命令，将远程分支的指定文件检出到本地，无需执行完整的pull操作。 此内容根据文章生成，仅用于文章内容的解释与总结 git 只需要拉取readme.md文件git pull --rebase origin master

git 报错OpenSSL SSL_read: Connection was reset, errno 10054
type: item
date: 2023-02-09T03:43:49+00:00
description: AI摘要 Git报错“OpenSSL SSL_read: Connection was reset, errno 10054”通常由代理设置引起。解决方法是取消本机Git代理配置，执行命令：`git config --global --unset http.proxy` 和 `git config --global --unset https.proxy` 即可恢复连接。 此内容根据文章生成，仅用于文章内容的解释与总结 git报错OpenSSL SSL_read: Connection was reset, errno 10054解决方法取消本机代理git config --global --unset http.proxy git config --global --unset https.proxy

git add . 报错The file will have its original line endings in your working directory
type: item
date: 2023-02-09T03:09:41+00:00
description: AI摘要 在使用git add时出现“The file will have its original line endings”提示，是因不同操作系统换行符差异导致的。可通过执行命令`git config --global core.autocrlf false`关闭自动转换功能来解决。 此内容根据文章生成，仅用于文章内容的解释与总结 git add . 报错The file will have its original line endings in your working directoryThe file will have its original line endings in your working directory 文件将有原来的线末梢在您的工作目录分析根据不同系统的换行符导致解决方法git config --global core.autocrlf false