Skip to content

Commit 4c47204

Browse files
authored
Merge pull request #1116 from Tvirus/master
change the describe of when should force the removal with the -f option
2 parents 9d5b158 + b0d9abb commit 4c47204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/02-git-basics/sections/recording-changes.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ Changes to be committed:
533533
----
534534

535535
The next time you commit, the file will be gone and no longer tracked.
536-
If you modified the file and added it to the staging area already, you must force the removal with the `-f` option.
536+
If you modified the file or had already added it to the staging area, you must force the removal with the `-f` option.
537537
This is a safety feature to prevent accidental removal of data that hasn't yet been recorded in a snapshot and that can't be recovered from Git.
538538

539539
Another useful thing you may want to do is to keep the file in your working tree but remove it from your staging area.

0 commit comments

Comments
 (0)