1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-15 07:42:55 -05:00

non-selectable line numbers on code fences

This commit is contained in:
2019-12-04 11:25:46 -05:00
parent 1747bdd149
commit 552b62f571
9 changed files with 141 additions and 124 deletions

View File

@@ -36,7 +36,7 @@ Assuming you're using GitHub, this step is easy. Just find the repository you're
GitHub will automatically redirect you to the forked repository under your username. This is the repository you need to clone to your local development environment, **not** the original. Grab the URL GitHub provides under the green "Clone or Download" button and plug it into the command below.
```bash
```bash {linenos=false}
git clone git@github.com:jakejarvis/react-native.git
```
@@ -51,7 +51,7 @@ Switch directories to the forked repository you just cloned and run the followin
This links the fork back to the original repository as a remote, which we'll name `upstream`, and then fetch it.
```bash
```bash {linenos=false}
git remote add --track master upstream git@github.com:facebook/react-native.git
git fetch upstream
```
@@ -61,7 +61,7 @@ git fetch upstream
It's possible to make changes directly to the `master` branch, but this might FUBAR things down the road for complicated reasons. It's best to [`checkout`](https://git-scm.com/docs/git-checkout) a new branch for **each** change/improvement you want to make. Replace `fix-readme-typo` with a more descriptive name for your changes, like `add-mobile-site` or `update-dependencies`.
```bash
```bash {linenos=false}
git checkout -b fix-readme-typo upstream/master
```
@@ -75,14 +75,14 @@ This is either the easiest part or the hardest part, depending on how you look a
You're probably used to these commands. Add the files you've changed and commit them with a descriptive message.
```bash
```bash {linenos=false}
git add .
git commit -m "Fix grammar mistakes in the readme file"
```
The one difference is the branch you're pushing to. You likely usually push to `master`, but in this case, we're pushing to the branch with the name you created in step 4.
```bash
```bash {linenos=false}
git push -u origin fix-readme-typo
```