Skip to content

针对M$WIN端的一种git clone的方法。 #2790

Description

@CiangCing14

解决方法 1:跳过无法创建的文件

Git 本身没有直接提供跳过文件的方法,但你可以尝试以下方法:

方法 1.1:先 clone 再 checkout

  1. 克隆时不检出文件:
git clone --no-checkout <repo_url>
  • --no-checkout:只下载 Git 数据,不检出工作目录。
  1. 手动跳过文件进行检出:
git checkout HEAD -- . 2>&1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions