This commit is contained in:
Hemanth.HM 2016-02-26 19:08:55 +05:30
parent d07dd0040c
commit 7dcbedb269
2 changed files with 9 additions and 0 deletions

View File

@ -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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -599,5 +600,10 @@ git commit --fixup <SHA-1>
git rebase -i --autosquash
```
## skip staging area during commit
```sh
git commit -am 'commit message'
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -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'"
}]