Skip to content

Commit 27f7cef

Browse files
committed
List ignored files.
1 parent 7dcbedb commit 27f7cef

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@
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)
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)
8888
* [squash fixup commits normal commits.](https://github.com/git-tips/tips#squash-fixup-commits-normal-commits)
89-
* [skip staging area during commit](https://github.com/git-tips/tips#skip-staging-area-during-commit)
89+
* [skip staging area during commit.](https://github.com/git-tips/tips#skip-staging-area-during-commit)
90+
* [List ignored files.](https://github.com/git-tips/tips#list-ignored-files)
9091

9192
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
9293
<!-- @doxie.inject end toc -->
@@ -590,7 +591,7 @@ git name-rev --name-only <SHA-1>
590591
git clean -fd --dry-run
591592
```
592593

593-
## Marks your commit as a fix of a previous commit
594+
## Marks your commit as a fix of a previous commit.
594595
```sh
595596
git commit --fixup <SHA-1>
596597
```
@@ -600,10 +601,15 @@ git commit --fixup <SHA-1>
600601
git rebase -i --autosquash
601602
```
602603

603-
## skip staging area during commit
604+
## skip staging area during commit.
604605
```sh
605606
git commit -am 'commit message'
606607
```
607608

609+
## List ignored files.
610+
```sh
611+
git check-ignore *
612+
```
613+
608614
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
609615
<!-- @doxie.inject end -->

tips.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,15 @@
258258
"title": "Dry run. (any command that supports dry-run flag should do.)",
259259
"tip": "git clean -fd --dry-run"
260260
}, {
261-
"title": "Marks your commit as a fix of a previous commit",
261+
"title": "Marks your commit as a fix of a previous commit.",
262262
"tip": "git commit --fixup <SHA-1>"
263263
}, {
264264
"title": "squash fixup commits normal commits.",
265265
"tip": "git rebase -i --autosquash"
266266
}, {
267-
"title": "skip staging area during commit",
267+
"title": "skip staging area during commit.",
268268
"tip": "git commit -am 'commit message'"
269+
},{
270+
"title": "List ignored files.",
271+
"tip": "git check-ignore *"
269272
}]

0 commit comments

Comments
 (0)