Skip to content

Windows Git Clone Fails: Invalid Filename with Colon CharacterΒ #398

@Hacknova49

Description

@Hacknova49

Description
When cloning the repository on Windows, the checkout fails due to invalid characters (colon) in a filename within the NASA_Image_Extraction folder. This prevents successful cloning for Windows users.

Type of issue

  • Bug

  • Feature (New Script)

  • Documentation

Checklist:
I have read the project guidelines.

  • I have checked previous issues to avoid duplicates.

  • This issue will be meaningful for the project.

  • I have added steps to reproduce the bug

  • I have proposed a possible solution for the bug

Steps to Reproduce:

Run git clone https://github.com/Hacknova49/python-mini-project.git

Git fails during checkout with error:

error: invalid path 'NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744: Extragalactic Close-Up.mp3'
fatal: unable to checkout working tree

Proposed Solution:
Immediate workaround:

git config core.protectNTFS false
git checkout -f HEAD

Long-term fix:

  • Rename the problematic file to avoid using colons (:) in filenames
  • Example new name: 2022-11-25_NGC 6744 - Extragalactic Close-Up.mp3
  • Update any references to this file in the codebase

Image of the issue

Image

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