mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 12:44:02 +08:00
git-add: fix --force example (#20885)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user