Skip to content

Commit 7dcbedb

Browse files
committed
-am
1 parent d07dd00 commit 7dcbedb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
* [Dry run. (any command that supports dry-run flag should do.)](https://github.com/git-tips/tips#dry-run-any-command-that-supports-dry-run-flag-should-do)
8787
* [Marks your commit as a fix of a previous commit](https://github.com/git-tips/tips#marks-your-commit-as-a-fix-of-a-previous-commit)
8888
* [squash fixup commits normal commits.](https://github.com/git-tips/tips#squash-fixup-commits-normal-commits)
89+
* [skip staging area during commit](https://github.com/git-tips/tips#skip-staging-area-during-commit)
8990

9091
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
9192
<!-- @doxie.inject end toc -->
@@ -599,5 +600,10 @@ git commit --fixup <SHA-1>
599600
git rebase -i --autosquash
600601
```
601602

603+
## skip staging area during commit
604+
```sh
605+
git commit -am 'commit message'
606+
```
607+
602608
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
603609
<!-- @doxie.inject end -->

tips.json

+3
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,7 @@
263263
}, {
264264
"title": "squash fixup commits normal commits.",
265265
"tip": "git rebase -i --autosquash"
266+
}, {
267+
"title": "skip staging area during commit",
268+
"tip": "git commit -am 'commit message'"
266269
}]

0 commit comments

Comments
 (0)