You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This episode should probably be generally re-worked to reflect the new commands to replace checkout including restore and switch, but below are specific points where the new version of git's outputs differ from the lesson text.
the output text for git status (unstaged edits) is out of date:
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
...
updated output:
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
...
the output text for git status (staged edits) is out of date:
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: mars.txt
updated output:
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: mars.txt
the text for the detached head is out of date:
Note: checking out 'f22b25e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
...
updated output:
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
...
The text was updated successfully, but these errors were encountered:
This episode should probably be generally re-worked to reflect the new commands to replace checkout including restore and switch, but below are specific points where the new version of git's outputs differ from the lesson text.
updated output:
updated output:
updated output:
The text was updated successfully, but these errors were encountered: