Skip to content

Setting Up Git

Laetitia Fesselier edited this page Apr 24, 2023 · 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 sudo apt-get install -y git, if you don't have git yet
  2. Run cd /var/www (Or where your apache2 is serving files from)
  3. Run cd <loris-directory>
  4. Run git clone <git-clone-url> .

Important: note the period -- the last argument in this git clone command

  1. Wait while it clones
  2. Clone complete

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>
  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>
  3. Run git remote add aces https://github.com/aces/Loris.git
  4. Run git fetch aces

Return to Installing LORIS

Click here to continue

Clone this wiki locally