Elvenware

git-install

Welcome to git-install

Installing Git

There are various ways to install Git.

Install Git on Ubuntu Server

Git may already be installed on your version of Ubuntu. If not, here is how to install Git:

sudo apt-get install git

Create a directory named Git and navigate to it:

mkdir ~/Git
cd ~/Git

Now pull down our JsObjects repository. You will not have permission to write to this repository, hence your access will be in read only mode:

git clone https://github.com/charliecalvert/JsObjects.git

Now you can navigate into the JsObjects repository and begin to explore it:

cd JsObjects

The ReadMe file for the repository is here:

Install Git on Windows

There are two applications you might want to install. The primary Git application is found here:

When you run the install shown above, be sure to choose the option that gets Git on your path. Also, you will probably want to set Git up to work with PLink (Putty), and you will want to choose an option that ensures that you have LF style line endings on files that you plan to use on a Linux box.

Because GitHub is so ubiquitous, you will probably want to install its GUI front end also:

You can use Git-Scm with GitHub, but there is no denying that the GitHub GUI makes dealing with repositories on GitHub very easy.

Clone on Desktop

On GitHub, you might notice a button that says Clone on Desktop. If set up correctly, this button will allow you to clone a repository using a GUI application. On Windows, this application is called GitHub for Windows. For a variety of reasons, I think it is ultimately best to manage your Git repositories from the command line, but there is no denying that this GUI interface can be useful, particularly if you only plan to use Git from Windows.

In theory, you should be able to just push the Clone on Desktop button and the process of installing GitHub for Windows should occur automatically. In practice, this does not always happen. Unfortunately, there are variety of reasons why this call might fail, depending on the browser and system you are using. My suggestion is to simply install GitHub for Windows manually, and then the button should begin working as you expect.

To install GitHub for Windows go to the first link below:

A file called GitHubSetup.exe should soon be downloaded to your downloads folder. You can run it from there. The install is a forehead install, and should be navigable by everyone in your family from your cat on up. I believe that it does not require admin privileges to run this install.

While you are at it, and if you have not already done so, you should also install Git: