Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在使用 svn2git 将 svn 项目转移到 git 项目时,我遇到了以下问题。
命令失败:git checkout -b "1.7.8" "remotes/svn/1.7.8"
根本原因是 svn 存储库中有一个 .gitattributes 文件,该文件的内容是
text=auto
在 svn2git 命令中添加 --exclude ".*gitattributes$" 后,问题就解决了。