From 84ac5877f34de7fd57906f8c9a4e14fea4090dcb Mon Sep 17 00:00:00 2001 From: awalGarg Date: Wed, 4 Mar 2015 22:00:00 +0530 Subject: [PATCH] Added the handy -a switch --- git.html.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git.html.markdown b/git.html.markdown index 04350dd5..af65afb0 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -217,6 +217,9 @@ the changes made and a message created by the user. ```bash # commit with a message $ git commit -m "Added multiplyNumbers() function to HelloWorld.c" + +# automatically stage modified or deleted files, except new files, and then commit +$ git commit -a -m "Modified foo.php and removed bar.php" ``` ### diff