Skip to content

Commit 9283441

Browse files
committed
doc: git-add: clarify explanation of editing file
Match the tone of this paragraph to the earlier paragraphs and continue with the same example.
1 parent 486aba6 commit 9283441

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-add.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ to commit your changes to that file, you can run:
2929

3030
You can also add only part of your changes to a file with `git add -p`.
3131

32-
This command can be performed multiple times before a commit. It only
33-
adds the content of the specified file(s) at the time the add command is
34-
run; if you want subsequent changes included in the next commit, then
35-
you must run `git add` again to add the new content to the index.
32+
The `git add` command only stages the changes at the time that you run
33+
it. If you edit `file.c` after running `git add file.c`, you need to
34+
stage the new changes before committing, for example by running
35+
`git add file.c` again.
3636

3737
The `git status` command can be used to obtain a summary of which
3838
files have changes that are staged for the next commit.

0 commit comments

Comments
 (0)