Skip to content

Commit

Permalink
content/archaeology: change switch on newer git to checkout on ne…
Browse files Browse the repository at this point in the history
…wer git

- The "never git" message now becomes an "older git" note.
  • Loading branch information
rkdarst committed Sep 12, 2023
1 parent a49b5bb commit 89c8646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/archaeology.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ $ # if we like we can delete the "older-code" branch
$ git branch -d older-code
```

On newer Git versions this is the preferred command:
On old Git versions you need to use this:

```console
$ git switch --create branchname somehash
$ git checkout -b BRANCHNAME SOMEHASH
```

(exercise-history)=
Expand Down

0 comments on commit 89c8646

Please sign in to comment.