From 7dcbedb26948031bba58eb6b0cead29211477a6f Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Fri, 26 Feb 2016 19:08:55 +0530 Subject: [PATCH] -am --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) 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'" }]