Skip to content

Commit 7746790

Browse files
committed
Merge pull request #512 from rodsouza9/master
Warning for git commit -a -m""
2 parents 82fa5e9 + a02b37a commit 7746790

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +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+
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.
469471

470472
[[_removing_files]]
471473
==== Removing Files

0 commit comments

Comments
 (0)