summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2015-03-04 11:49:01 -0700
committerGeoff Liu <cangming.liu@gmail.com>2015-03-04 11:49:01 -0700
commit4dc193d347001348a3973467d96b09dfb764464e (patch)
treeb6b3a8a5c766a3a78f961df84d0618dfd3fc65f2
parentd2d3efead458aa0921862a3a5f413f47cabf432d (diff)
parent84ac5877f34de7fd57906f8c9a4e14fea4090dcb (diff)
Merge pull request #985 from awalGarg/patch-1
[git/en] Added the handy -a switch
-rw-r--r--git.html.markdown3
1 files changed, 3 insertions, 0 deletions
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