diff --git a/README.md b/README.md index 128b976..52b51e5 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,10 @@ * [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) +* [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) +* [skip staging area during commit.](https://github.com/git-tips/tips#skip-staging-area-during-commit) +* [List ignored files.](https://github.com/git-tips/tips#list-ignored-files) @@ -590,7 +591,7 @@ git name-rev --name-only git clean -fd --dry-run ``` -## Marks your commit as a fix of a previous commit +## Marks your commit as a fix of a previous commit. ```sh git commit --fixup ``` @@ -600,10 +601,15 @@ git commit --fixup git rebase -i --autosquash ``` -## skip staging area during commit +## skip staging area during commit. ```sh git commit -am 'commit message' ``` +## List ignored files. +```sh +git check-ignore * +``` + diff --git a/tips.json b/tips.json index 9cced4a..d6eb28c 100644 --- a/tips.json +++ b/tips.json @@ -258,12 +258,15 @@ "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", + "title": "Marks your commit as a fix of a previous commit.", "tip": "git commit --fixup " }, { "title": "squash fixup commits normal commits.", "tip": "git rebase -i --autosquash" }, { - "title": "skip staging area during commit", + "title": "skip staging area during commit.", "tip": "git commit -am 'commit message'" +},{ + "title": "List ignored files.", + "tip": "git check-ignore *" }]