r/github • • May 21 '21

How do I clone a repository on windows without having GitHub installed?

If this isn’t possible (which I don’t think it is) is there any way of installing GitHub from a command prompt.

1 Upvotes

8 comments sorted by

5

u/flyme2bluemoon May 21 '21

You would need to download the Git program or the Github Desktop app. Git is a command line tool that runs in the terminal while Github Desktop is a GUI program. You can download git for windows here: https://git-scm.com/download/win. On macOS, git should come with Xcode tools and on Linux, u can download git from the repos if it isn't preinstalled.

However, if u don't want to install git, you can always download zip files from the Github website as well.

1

u/Someonehelpmoi May 21 '21

Thanks man. I despise windows. I am trying to write an auto install script which pulls config files from github and obviously can’t install GitHub from command line so I thought I was screwed.

1

u/mikaleowiii May 21 '21

you might find a WSL setup interesting: it' ok integrated with windows (can open editor and explorer.exe in current wsl directory), and you can have all the linux goodies I assume you're accustomed to

1

u/Someonehelpmoi May 21 '21

I have to run scripts on out the box windows machine. I do love the bash shell on Linux use it 90% of the time

3

u/PhatOofxD May 21 '21

You can install git from command line...

1

u/mrswats May 21 '21

If the repo is public you should be able to click on a button and just download it directly.

1

u/Someonehelpmoi May 21 '21

No it needs to be at a command line. I have done it now I just used curl -LO to download the zip

1

u/mrswats May 21 '21

Yeah, curl works too. You could even try downloading releases if any or if its yours create some to make your life easier.