Skip to content

Failed to clone repo on Windows due to a colon in dir names #3

@flopacero

Description

@flopacero

While trying to clone this repo on Windows I failed with

Cloning into 'HTMLCSS-QuickStartGuide'...
remote: Enumerating objects: 1682, done.
remote: Counting objects: 100% (248/248), done.
remote: Compressing objects: 100% (109/109), done.
Receiving objects: 100% (1682/1682), 663.63 KiB | 4.25 MiB/s, done. 1434

Resolving deltas: 100% (886/886), done.
fatal: cannot create directory at '01-Chapter 1: HTML & CSS—The Basics and the Bigger Picture': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

It's all due to names of files with colon :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions