1
0
mirror of https://github.com/namibia/tips.git synced 2024-06-26 15:03:28 +00:00

--fixup tip

This commit is contained in:
Hemanth.HM 2016-02-22 19:16:57 +05:30
parent cf260b7ef4
commit f886fd31fa
2 changed files with 9 additions and 0 deletions

View File

@ -84,6 +84,7 @@
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
* [Check if the change was a part of a release.](https://github.com/git-tips/tips#check-if-the-change-was-a-part-of-a-release)
* [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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -587,5 +588,10 @@ git name-rev --name-only <SHA-1>
git clean -fd --dry-run
```
## Marks your commit as a fix of a previous commit
```sh
git commit --fixup <SHA-1>
```
<!-- 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

@ -257,4 +257,7 @@
}, {
"title": "Dry run. (any command that supports dry-run flag should do.)",
"tip": "git clean -fd --dry-run"
}, {
"title": "Marks your commit as a fix of a previous commit",
"tip": "git commit --fixup <SHA-1>"
}]