diff options
Diffstat (limited to '_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md')
-rw-r--r-- | _tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md b/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md index e42ce4f..8676fcb 100644 --- a/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md +++ b/_tils/2020-08-14-browse-a-git-repository-at-a-specific-commit.md @@ -54,9 +54,10 @@ specific, we need some extra parameters: git --work-tree=<dir> checkout <my-commit> -- . ``` -There's an extra `-- .` at the end, which initally looks like we're sending -morse signals to git, but we're actually saying to `git-checkout` which subdir -of `<my-commit>` we want to look at. Which means we can do something like: +There's an extra `-- .` at the end, which initially looks like we're sending +Morse signals to git, but we're actually saying to `git-checkout` which +sub directory of `<my-commit>` we want to look at. Which means we can do +something like: ```shell git --work-tree=<dir> checkout <my-commit> -- src/ |