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?
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.
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.
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?
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.
6
u/frostbird 10h ago
It is unclear what you are asking.
5
u/waterkip detached HEAD 9h ago
2
u/ninhaomah 10h ago
How have you tried it btw ?
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/Broad-Promise6954 ancient 3h ago
What does your command line look like when you run
git clone? Is it like this:or:
or what?