Skip to content

Setting Up Git

AnyhowStep edited this page May 1, 2017 · 12 revisions

Terminology

  • <git-username> = The username you registered for Github with
  • <git-clone-url> = The URL you clone with git clone
  • <git-name> = The user.name you configure git with (Maybe your real name or a cool online profile name?)

For ones used to $terminology

  • <git-username> = No equivalent
  • <git-clone-url> = No equivalent
  • <git-name> = No equivalent

Registering

  1. Register a Github account
  2. Verify your email address
  3. Remember your <git-username>!

In this example, loris-install is the <git-username>

Forking

  1. Log in to Github
  2. Go to the Loris repository
  3. Look for the "Fork" button
  4. Click it
  5. Wait while it forks
  6. Fork complete

The location of the "Fork" button:

What it looks like while waiting:

Getting the Clone Link

  1. Remember your <git-username>!
  2. Log in to Github
  3. Go to https://github.com/<git-username>/Loris
  4. Look for the "Clone or download" button
  5. Click it
  6. Look for the "Copy to clipboard" button
  7. Click it
  8. You now have the <git-clone-url>

In this example, I navigated to https://github.com/loris-install/Loris

Cloning

Make sure you're ssh'd as <unix-user>

  1. Run cd /var/www (Or where your apache2 is serving files from)
  2. Run cd <loris-directory>
  3. Run git clone <git-clone-url>
  4. Wait while it clones
  5. Clone complete

You should see something like this:

Configuring Git Information

Make sure you're ssh'd as <unix-user>

  1. Run cd /var/www (Or where your apache2 is serving files from)
  2. Run cd <loris-directory>/Loris
  3. Run git config --global user.name "<git-name>"

Adding aces/Loris

  1. Run cd /var/www (Or where your apache2 is serving files from)
  2. Run cd <loris-directory>/Loris
  3. Run git remote add aces https://github.com/aces/Loris.git
  4. Run git fetch aces

Clone this wiki locally