@@ -51,15 +51,15 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
51
51
1 . If you haven't already, initialize a local Git repository, replacing REPOSITORY-NAME with the name of your repository.
52
52
53
53
``` shell
54
- $ git init REPOSITORY-NAME
54
+ git init REPOSITORY-NAME
55
55
> Initialized empty Git repository in /REPOSITORY-NAME/.git/
56
56
# Creates a new folder on your computer, initialized as a Git repository
57
57
```
58
58
59
59
1 . Change directories to the repository.
60
60
61
61
``` shell
62
- $ cd REPOSITORY-NAME
62
+ cd REPOSITORY-NAME
63
63
# Changes the working directory
64
64
```
65
65
@@ -68,24 +68,24 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
68
68
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.
69
69
70
70
```shell
71
- $ mkdir docs
71
+ mkdir docs
72
72
# Creates a new folder called docs
73
- $ cd docs
73
+ cd docs
74
74
```
75
75
76
76
If you chose to publish your site from the `gh-pages` branch, create and checkout the `gh-pages` branch.
77
77
78
78
```shell
79
- $ git checkout --orphan gh-pages
79
+ git checkout --orphan gh-pages
80
80
# 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 .
82
82
# Removes the contents from your default branch from the working directory
83
83
```
84
84
85
85
1 . To create a new Jekyll site, use the ` jekyll new ` command in your repository's root directory:
86
86
87
87
``` shell
88
- $ jekyll new --skip-bundle .
88
+ jekyll new --skip-bundle .
89
89
# Creates a Jekyll site in the current directory
90
90
```
91
91
@@ -128,9 +128,9 @@ Before you can use Jekyll to create a {% data variables.product.prodname_pages %
128
128
129
129
``` shell
130
130
{% 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
132
132
{% else %}
133
- $ git remote add origin https://HOSTNAME/USER/REPOSITORY.git
133
+ git remote add origin https://HOSTNAME/USER/REPOSITORY.git
134
134
{% endif %}
135
135
```
136
136
0 commit comments