Skip to content

Commit c2e55c5

Browse files
committed
Use <> brackets to indicate mandatory parameter
Square brackets [] indicate an optional parameter. In `git checkout -- <file>` the filename is mandatory.
1 parent 89ed85e commit c2e55c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/02-git-basics/sections/undoing.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ You can see that the changes have been reverted.
121121

122122
[IMPORTANT]
123123
=====
124-
It's important to understand that `git checkout -- [file]` is a dangerous command.
124+
It's important to understand that `git checkout -- <file>` is a dangerous command.
125125
Any changes you made to that file are gone – you just copied another file over it.
126126
Don't ever use this command unless you absolutely know that you don't want the file.
127127
=====

0 commit comments

Comments
 (0)