Add note on 'git restore' to Instructor Notes#1109
Merged
erinmgraham merged 1 commit intoswcarpentry:mainfrom Jan 29, 2026
Merged
Add note on 'git restore' to Instructor Notes#1109erinmgraham merged 1 commit intoswcarpentry:mainfrom
erinmgraham merged 1 commit intoswcarpentry:mainfrom
Conversation
Added a note on the 'git restore' command to clarify its relation to 'git checkout'.
🆗 Pre-flight checks passed 😃This pull request has been checked and contains no modified workflow files, spoofing, or invalid commits. It should be safe to Approve and Run the workflows that need maintainer approval. |
Contributor
|
Looks good to me too! |
github-actions Bot
pushed a commit
that referenced
this pull request
Jan 29, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 3, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 5, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 10, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 17, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 24, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 3, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 3, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 10, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 17, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 31, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
github-actions Bot
pushed a commit
that referenced
this pull request
Apr 7, 2026
Auto-generated via `{sandpaper}`
Source : 9932839
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-01-29 19:52:12 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 4061473
Branch : main
Author : erinmgraham <erin.graham@jcu.edu.au>
Time : 2026-01-29 19:50:49 +0000
Message : Merge pull request #1109 from gray95/checkout-context
Add note on 'git restore' to Instructor Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses issue #1020 by adding a note on
git restoretoinstructor-notes.mdclarifying its relation togit checkout.Info on these changes can be found here, here, and in Git's release notes.
git switchis not mentioned in the lesson to the best of my knowledge so I didn't mention it even though it was introduced at the same time asgit restore.