git-add: fix --force example (#20885)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Dylan
2026-01-24 10:20:38 +07:00
committed by GitHub
co-authored by Managor
parent a915ad94b5
commit a99bd9a9f4
+3 -3
View File
@@ -3,7 +3,7 @@
> Adds changed files to the index.
> More information: <https://git-scm.com/docs/git-add>.
- Add a file to the index:
- Stage a file for a commit:
`git add {{path/to/file}}`
@@ -19,9 +19,9 @@
`git add {{[-u|--update]}}`
- Also add ignored files:
- Add an ignored file:
`git add {{[-f|--force]}}`
`git add {{[-f|--force]}} {{path/to/file}}`
- Interactively stage parts of files: