Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Update source.md to include Casper submodule #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 27 additions & 15 deletions content/install/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ yarn global add knex-migrator grunt-cli ember-cli bower

## Create GitHub forks

First you'll need to make forks of both the [Ghost](https://github.com/tryghost/ghost) and [Ghost-Admin](https://github.com/tryghost/ghost-admin) repositories. Click on the fork button right at the top, wait for a copy to be created over on your personal GitHub account, and you should be all set!
First you'll need to make forks of the [Ghost](https://github.com/tryghost/ghost), [Casper](https://github.com/tryghost/casper), and [Ghost-Admin](https://github.com/tryghost/ghost-admin) repositories. Click on the fork button right at the top, wait for a copy to be created over on your personal GitHub account, and you should be all set!


![Fork](/images/setup/fork.gif)
Expand Down Expand Up @@ -57,37 +57,49 @@ git clone --recurse-submodules [email protected]:TryGhost/Ghost && cd Ghost
# Rename origin to upstream
git remote rename origin upstream

# Add your fork as an origin, editing in <YourUsername>!
# Add your fork as an origin, editing in <YourUsername>
git remote add origin [email protected]:<YourUsername>/Ghost.git

# List remote repositories to verify they were properly added
git remote -v
```

### Ghost Admin
### Casper

Because Ghost-Admin is a submodule repository of the main Ghost repository, the same steps need to be repeated to configure Git here, too.
Because Casper is a submodule repository of the main Ghost repository, the same steps need to be repeated to configure git here, too.

```bash
# Switch to Ghost-Admin dir
cd core/client
# Switch to Casper dir
cd content/themes/casper
```

#### Properly rename your references again
#### Properly rename your references for Casper

```bash
# Rename origin to upstream again
# Rename origin to upstream
git remote rename origin upstream

# Add your fork as an origin, editing in <YourUsername>!
git remote add origin [email protected]:<YourUsername>/Ghost-Admin.git
# Add your fork as an origin, editing in <YourUsername>
git remote add origin [email protected]:<YourUsername>/Casper.git
```

#### Bring Ghost-Admin up to date
### Ghost Admin

Because Ghost-Admin is also a submodule repository of the main Ghost repository, the same steps need to be repeated to configure Git here, too.

```bash
# Quick check that everything is on latest
git checkout master && git pull upstream master
# Switch to Ghost-Admin dir
cd core/client
```

#### Properly rename your references for Ghost-Admin

```bash
# Rename origin to upstream
git remote rename origin upstream

# Then return to Ghost root directory
cd ../../
# Add your fork as an origin, editing in <YourUsername>
git remote add origin [email protected]:<YourUsername>/Ghost-Admin.git
```


Expand Down