File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 69
69
* [ Fetch pull request by ID to a local branch] ( https://github.com/git-tips/tips#fetch-pull-request-by-id-to-a-local-branch )
70
70
* [ Show the most recent tag on the current branch.] ( https://github.com/git-tips/tips#show-the-most-recent-tag-on-the-current-branch )
71
71
* [ Show inline word diff.] ( https://github.com/git-tips/tips#show-inline-word-diff )
72
+ * [ Don’t consider changes for tracked file.] ( https://github.com/git-tips/tips#dont-consider-changes-for-tracked-file )
73
+ * [ Undo assume-unchanged.] ( https://github.com/git-tips/tips#undo-assume-unchanged )
72
74
73
75
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
74
76
<!-- @doxie.inject end toc -->
@@ -485,5 +487,15 @@ git describe --tags --abbrev=0
485
487
git diff --word-diff
486
488
```
487
489
490
+ ## Don’t consider changes for tracked file.
491
+ ``` sh
492
+ git update-index --assume-unchanged < file_name>
493
+ ```
494
+
495
+ ## Undo assume-unchanged.
496
+ ``` sh
497
+ git update-index --no-assume-unchanged < file_name>
498
+ ```
499
+
488
500
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
489
501
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 276
276
{
277
277
"title" : " Show inline word diff." ,
278
278
"tip" : " git diff --word-diff"
279
+ },
280
+ {
281
+ "title" : " Don’t consider changes for tracked file." ,
282
+ "tip" : " git update-index --assume-unchanged <file_name>"
283
+ },
284
+ {
285
+ "title" : " Undo assume-unchanged." ,
286
+ "tip" : " git update-index --no-assume-unchanged <file_name>"
279
287
}
280
288
]
You can’t perform that action at this time.
0 commit comments