Skip to content

Commit c0cbfe9

Browse files
authored
Update creating-a-github-pages-site-with-jekyll.md (github#36314)
1 parent 37ce60d commit c0cbfe9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
5151
1. If you haven't already, initialize a local Git repository, replacing REPOSITORY-NAME with the name of your repository.
5252

5353
```shell
54-
$ git init REPOSITORY-NAME
54+
git init REPOSITORY-NAME
5555
> Initialized empty Git repository in /REPOSITORY-NAME/.git/
5656
# Creates a new folder on your computer, initialized as a Git repository
5757
```
5858

5959
1. Change directories to the repository.
6060

6161
```shell
62-
$ cd REPOSITORY-NAME
62+
cd REPOSITORY-NAME
6363
# Changes the working directory
6464
```
6565

@@ -68,24 +68,24 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
6868
For example, if you chose to publish your site from the `docs` folder on the default branch, create and change directories to the `docs` folder.
6969

7070
```shell
71-
$ mkdir docs
71+
mkdir docs
7272
# Creates a new folder called docs
73-
$ cd docs
73+
cd docs
7474
```
7575

7676
If you chose to publish your site from the `gh-pages` branch, create and checkout the `gh-pages` branch.
7777

7878
```shell
79-
$ git checkout --orphan gh-pages
79+
git checkout --orphan gh-pages
8080
# Creates a new branch, with no history or contents, called gh-pages, and switches to the gh-pages branch
81-
$ git rm -rf .
81+
git rm -rf .
8282
# Removes the contents from your default branch from the working directory
8383
```
8484

8585
1. To create a new Jekyll site, use the `jekyll new` command in your repository's root directory:
8686

8787
```shell
88-
$ jekyll new --skip-bundle .
88+
jekyll new --skip-bundle .
8989
# Creates a Jekyll site in the current directory
9090
```
9191

@@ -128,9 +128,9 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
128128

129129
```shell
130130
{% ifversion fpt or ghec %}
131-
$ git remote add origin https://github.com/USER/REPOSITORY.git
131+
git remote add origin https://github.com/USER/REPOSITORY.git
132132
{% else %}
133-
$ git remote add origin https://HOSTNAME/USER/REPOSITORY.git
133+
git remote add origin https://HOSTNAME/USER/REPOSITORY.git
134134
{% endif %}
135135
```
136136

0 commit comments

Comments
 (0)