diff --git a/README.md b/README.md index 557387b..f6885c8 100644 --- a/README.md +++ b/README.md @@ -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) @@ -587,5 +588,10 @@ git name-rev --name-only git clean -fd --dry-run ``` +## Marks your commit as a fix of a previous commit +```sh +git commit --fixup +``` + diff --git a/tips.json b/tips.json index 0e0d6be..6848a83 100644 --- a/tips.json +++ b/tips.json @@ -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 " }]