Skip to content

Commit

Permalink
Merge pull request #410 from coderefinery/rkdarst/git-checkout-old
Browse files Browse the repository at this point in the history
content/archaeology: change `switch` on newer git to `checkout` on newer git
  • Loading branch information
bast authored Sep 12, 2023
2 parents a49b5bb + 89c8646 commit a8ab90e
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 a8ab90e

Please sign in to comment.