diff --git a/README.md b/README.md index d0aa04b..128b976 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ * [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) * [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) * [squash fixup commits normal commits.](https://github.com/git-tips/tips#squash-fixup-commits-normal-commits) +* [skip staging area during commit](https://github.com/git-tips/tips#skip-staging-area-during-commit) @@ -599,5 +600,10 @@ git commit --fixup git rebase -i --autosquash ``` +## skip staging area during commit +```sh +git commit -am 'commit message' +``` + diff --git a/tips.json b/tips.json index e289dda..9cced4a 100644 --- a/tips.json +++ b/tips.json @@ -263,4 +263,7 @@ }, { "title": "squash fixup commits normal commits.", "tip": "git rebase -i --autosquash" +}, { + "title": "skip staging area during commit", + "tip": "git commit -am 'commit message'" }]