I can see one specific folder("Src") on azure repo(that needs to remove) but now showing on local folder srtucture post clone it in the system. Actually that folder needs to remove from azure and with respect to that need to delete from local directory and create a PR so that post CI/CD that folder can be removed from azure repo.
Thanks,
tried to show all files and folder but could not find. also changed project reference from "Src" to "src" but it is showing "the reference is invalid or unsupported".
It seems like you are dealing with a case-sensitive naming conflict which is typical when transitioning between case-insensitive filesystems (like Windows) and case-sensitive ones (like those in Linux or macOS).
Git can be case-sensitive, and if your remote repository (in this case, Azure Repos) is on a case-sensitive filesystem, it can differentiate between
Srcandsrc. However, when you clone the repository to a case-insensitive filesystem (common in Windows), it can only see one of the folders.Here's how to resolve the issue and remove the unwanted
Srcfolder from the Azure repo: First, set your Git to be case sensitive on your local machine. This can help prevent these issues from occurring again in the future.Clone the repository again to ensure you have a fresh starting point.
If you're on a case-insensitive filesystem and you want to rename
Srctosrc, you might need to use an intermediate name.If the
Srcdirectory is empty, you need to remove it from Git and then commit that change. If you expect theSrcdirectory to have files, make sure those files are not untracked.Rename After Adding Files. Once you have committed the files inside the
Srcdirectory, try thegit mvcommand again.If the Directory Exists on Remote But Not Locally i.e. If the
Srcdirectory exists on the remote repository but not locally, fetch the latest changes and check out the branch again.Srcdirectory exists with content, proceed with the rename. If Renaming Is Not Possible Locally Due to Filesystem Constraints, consider using the Azure Repos web interface to delete theSrcdirectory directly in the browser.Finally commit and push these changes to your remote repository.
References: