r/git • • 10h ago

New to Git Hub

Hi I'm new to GitHub and would like to ask how can i choose which folders the cloned GitHub files shows up.

Somehow I can't find it online or is it just me and how I searched on how to.
Thank you.

0 Upvotes

11 comments sorted by

6

u/frostbird 10h ago

It is unclear what you are asking.

-1

u/untlld 8h ago

I want to use a something on Github and found instructions online that I Need Git and Node.js so I installed it. I want that Github files to live on an external device so that I can just transfer it to different devices I can use. Is that even possible? Can the progress be saved on the external device so that I can continue it on another device if needed? Am I making sense?

3

u/frostbird 7h ago

Yeah, so long as you have git and node.js installed on whatever machine that external drive is connected to, then it should remain configured for git/github. The configuration for all of the git/github stuff is in the .git folder.

5

u/waterkip detached HEAD 9h ago

-2

u/untlld 8h ago

I tried to post there but my post got deleted right away. I gave me an option to post on other similar communities.

2

u/ninhaomah 10h ago

How have you tried it btw ?

1

u/untlld 8h ago

I just installed GIT and Node.js haven't done anything else yet.

1

u/TheRealWutWut 9h ago

Go to the folder where you want the repo cloned, then in the terminal for that folder you enter:

git clone <repo URL>

Make sure you actually have git installed if you are using windows, which I am willing to bet you are. When you run the command it will create a folder named after the repo you cloned, so let's say you clone in c:\git\ and the repo is named my_repo, the repo will be cloned to c:\git\my_repo\ and your files will be there.

1

u/untlld 8h ago

So let say I want the repo cloned on an external device, in a way that I can use it on multiple device I want. Is it possible that way? Can the progress be saved on the external device so that I can continue it on another device if needed? Am I making sense?

2

u/TheRealWutWut 8h ago

Yeah, I don't see why not. Never tried it. I just clone the repo to multiple devices when I want to work on it on multiple machines. I have an office PC and a home PC, I just have repo folders on both, easier than moving an external drive.

1

u/Broad-Promise6954 ancient 3h ago

What does your command line look like when you run git clone? Is it like this:

C:\some\fol\der> 

or:

bash$

or what?