]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/gittutorial.txt
merge-recursive: fix the fix to the diff3 common ancestor label
[thirdparty/git.git] / Documentation / gittutorial.txt
index 242de31cb6ccc6600b94a68a9efd215df2cb71f7..59ef5cef1f080d079109c50f6034ff88901c658f 100644 (file)
@@ -110,7 +110,7 @@ $ git status
 On branch master
 Changes to be committed:
 Your branch is up to date with 'origin/master'.
-  (use "git reset HEAD <file>..." to unstage)
+  (use "git restore --staged <file>..." to unstage)
 
        modified:   file1
        modified:   file2
@@ -207,7 +207,7 @@ automatically.  The asterisk marks the branch you are currently on;
 type
 
 ------------------------------------------------
-$ git checkout experimental
+$ git switch experimental
 ------------------------------------------------
 
 to switch to the experimental branch.  Now edit a file, commit the
@@ -216,7 +216,7 @@ change, and switch back to the master branch:
 ------------------------------------------------
 (edit file)
 $ git commit -a
-$ git checkout master
+$ git switch master
 ------------------------------------------------
 
 Check that the change you made is no longer visible, since it was