Skip to content

Commit f886fd3

Browse files
committed
--fixup tip
1 parent cf260b7 commit f886fd3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
8585
* [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)
8686
* [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)
87+
* [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)
8788

8889
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
8990
<!-- @doxie.inject end toc -->
@@ -587,5 +588,10 @@ git name-rev --name-only <SHA-1>
587588
git clean -fd --dry-run
588589
```
589590

591+
## Marks your commit as a fix of a previous commit
592+
```sh
593+
git commit --fixup <SHA-1>
594+
```
595+
590596
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
591597
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,7 @@
257257
}, {
258258
"title": "Dry run. (any command that supports dry-run flag should do.)",
259259
"tip": "git clean -fd --dry-run"
260+
}, {
261+
"title": "Marks your commit as a fix of a previous commit",
262+
"tip": "git commit --fixup <SHA-1>"
260263
}]

0 commit comments

Comments
 (0)