Technical learning notes, conference insights, and development guides
Author

Dario Airoldi

Published

August 8, 2025

Keywords

learning, development, azure, dotnet, conference, documentation

PROBLEM DESCRIPTION

cloning a repository with Visual Studio fails with the following error:

Clone repo Fatal error
Clone Repository Fatal Error

ANALYSIS

Visual studio has grants to the folder as I could create a file Visual Studio file access

the issue also happens running visual studio with admin rights Admin rights

cloning the repo unders the user profile WORKS!
Clone under user profile

cloning it under drive e: fails as shown above.

SOLUTION

cloning the repo from the command line or by means of Visual studio code works fine!
alt text

ADDITIONAL INFORMATION

File System: E: drive is formatted with ReFS (Resilient File System)

alt text

alt text

ROOT CAUSE

The issue is caused by ReFS compatibility problems with Visual Studio’s Git integration:

  • ReFS vs NTFS: Visual Studio’s Git wrapper has known issues with ReFS file system
  • File System Calls: VS Git may use older Win32 APIs that don’t handle ReFS metadata correctly
  • File Locking: ReFS’s different file locking behavior conflicts with VS Git operations
  • Symbolic Links: ReFS handles symbolic links differently, which can confuse VS Git

WHY ALTERNATIVES WORK

  • Command Line Git: Uses standard Git binary with better ReFS support
  • VS Code: Uses standard Git binary, not Visual Studio’s wrapper
  • User Profile (C: drive): Typically formatted with NTFS, not ReFS

REFERENCES

Known Issues and Bug Reports

Solution Documentation

Visual Studio Git Documentation

ReFS Technical Documentation