7

Using GitHub Dekstop, I cloned one of my own repositories to my computer, and I named the folder repo:

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

Now if I navigate to the parent folder DevFiles, the repository folder repo is not visible.

But if I just paste C:\Users\Lenovo\Desktop\DevFiles\repo into the URL bar, the folder opens like normal.

Why might this be?

Aryan Beezadhur
  • 4,503
  • 4
  • 21
  • 42
  • @joanis the same problem occurred when I tried it with a different repo in a different folder, but by doing that I realised something odd which [led me to find the cause of the problem](https://stackoverflow.com/a/62839843/12860895) – Aryan Beezadhur Jul 10 '20 at 17:57

1 Answers1

9

This is a problem caused by OneDrive.

On my Windows PC, OneDrive, which creates a backup of every file on the system, was active. 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.

GitHub Desktop had stored the repo in

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

Not in the \OneDrive\ folder.

This is extremely confusing, especially since cloning more repositories had the same problem.

Aryan Beezadhur
  • 4,503
  • 4
  • 21
  • 42