Skip to content

Commit

Permalink
-am
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth committed Feb 26, 2016
1 parent d07dd00 commit 7dcbedb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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

## skip staging area during commit
```sh
git commit -am 'commit message'
```

<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->
3 changes: 3 additions & 0 deletions tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
}]

0 comments on commit 7dcbedb

Please sign in to comment.