简体   繁体   English

Git 存储库文件夹未出现在文件资源管理器中

[英]Git repository folder does not appear in File Explorer

Using GitHub Dekstop, I cloned one of my own repositories to my computer, and I named the folder repo :使用 GitHub Dekstop,我将自己的一个存储库克隆到我的计算机上,并将文件夹命名为repo

C:\Users\Lenovo\Desktop\DevFiles\repo

Now if I navigate to the parent folder DevFiles , the repository folder repo is not visible.现在,如果我导航到父文件夹DevFiles ,则存储库文件夹repo不可见。

But if I just paste C:\Users\Lenovo\Desktop\DevFiles\repo into the URL bar, the folder opens like normal.但是,如果我只是C:\Users\Lenovo\Desktop\DevFiles\repo粘贴到 URL 栏中,该文件夹将正常打开。

Why might this be?为什么会这样?

This is a problem caused by .这是由引起的问题。

On my Windows PC, OneDrive, which creates a backup of every file on the system, was active.在我的 Windows PC 上,创建系统上每个文件的备份的 OneDrive 处于活动状态。 I was trying to access the repo from我试图从

C:\Users\Lenovo\OneDrive\Desktop\DevFiles\repo

which is where File Explorer will go by default if I search for DevFiles .如果我搜索 DevFiles ,默认情况下文件资源管理器将在其中DevFiles

GitHub Desktop had stored the repo in GitHub Desktop 已将 repo 存储在

C:\Users\Lenovo\Desktop\DevFiles\repo

Not in the \OneDrive\ folder.不在\OneDrive\文件夹中。

This is extremely confusing, especially since cloning more repositories had the same problem.这非常令人困惑,特别是因为克隆更多存储库有同样的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM