Windows Server

How to clone a repository and install software from GitHub on Windows

GitHub is the most used version control system in the world. This project was developed by Linus Torvalds, the creator of the Linux operating system, and it is used by an enormous collection of software projects both commercial and open-source that depend on Git for version control.
– For how to install Git on macOS, see https://techdirectarchive.com/2018/12/13/git-osx-installation/
– For how to use AWS CodeCommit, see https://techdirectarchive.com/2018/07/13/using-aws-codecommit-vsc/

Note: GitHub is not a store app ;) There is no "guide on how to install a program from GitHub". Github is a platform where developers put their code*. Any code. It could be a Windows program. It could be an Android program. It could be HTML. It could be a library. It could be a snippet of code. It could be coded in a language invented by the developer.

Note: Some repositories have a Readme, see an example here for an example of a read me and this guides you on how to compile or install the program.
– This is up to the developers that posted the code. If there isn’t a readme then try to figure out what kind of code it is.

Install Git: To install Git, download Git for Windows in the following location.

– Click on run (If you wish to save and then execute you can as well)
– And follow other installation processes. It is simple, because of this I will not be explaining all the screenshots.
– Click on next

Choose to use any of the transport type
– Select the option to use OpenSSL
– Ensure you use same settings as shown below unless you extremely know what you are doing.

Enable the following configuration option and
– Click on Install
– Finally, you can launch the Git Bash by click on Next in as shown below.

Next, you will have to clone the repository. This repository contains the source code for the Package.
– Navigate to the URL here. Note, this repository will be different from yours. Ensure to access the right repository and have it cloned.

Next, on the Git Terminal window, enter the following command (syntax) to clone your repositories.
– The git command runs Git. Then, it’s told to clone a repository, and the link to the Windows Package Installer repository on GitHub is provided.

git clone https://github.com/microsoft/winget-pkgs.git

Now, we need to compile and install the code.
– Access the location of the cloned repo. In my case, I ran the “pwd” to determine the current directory i was and to determine where cloned repo was stored. For me, it was saved to this location C:\Users\TechDirectArchive

Tip! In whichever directory you were, that will be the location of your cloned repository (directory). Everything from the repository will be in a new directory named after that repository.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x