Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Nermin Kekic
Nermin Kekic
6,971 Points

Git clone not working

Hi Guys, I have a repo on github that i use to track code changes for the classes i take here in TreeHouse.

I normally upload changes from two of my machines i work from. One is Ubuntu 18.4 and the other Win 10. Today i installed git on another Win 10 machine i have and when i tried to clone repo, i noticed that only couple of folders were cloned. However the others were ignored? Does anybody know why this is happening? I have not experienced this issue with my other two machines i use.

I admit that i am not that familiar with git, i use only basic commands nothing complicated. git clone, commit, push, pull is the only commands i use.

Thanks, Nermin

1 Answer

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

That sounds like an interesting problem. I've had a few merge commits where I've not properly ensured that the stage is clean or my local repository is clean... but I can't remember having the same issue as you here.

I'd first make sure all the local repositories on your other machines are up to date. So you'll ensure you should always get a clean clone.

The other question to ask does every folder in your repository have something trackable in it? Git will not clone directories that have nothing in them.

Here's one Stack overflow thread that seems to resolve that issue. https://stackoverflow.com/questions/3562293/files-missing-from-a-git-clone

Let me know if this helps. You might also type your situation into Google. Someone in your situation is bound to have posted to another forum like this. :-)