Skip to content

Commit a02b37a

Browse files
committed
reworded the change for git commit -a -m
1 parent 1688af4 commit a02b37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ $ git commit -a -m 'added new benchmarks'
466466
----
467467

468468
Notice how you don't have to run `git add` on the `CONTRIBUTING.md` file in this case before you commit.
469-
But beware because you can commit files that you don't necessarily want to commit. Be diligent when you need to commit files, and most
470-
of the time you should stage and then commit you files.
469+
That's because the `-a` flag includes all changed files.
470+
This is convenient, but be careful; sometimes this flag will cause you to include unwanted changes.
471471

472472
[[_removing_files]]
473473
==== Removing Files

0 commit comments

Comments
 (0)