1
0
mirror of https://github.com/namibia/tips.git synced 2025-01-24 07:38:35 +00:00

--assume-unchanged and no--assume-unchanged

This commit is contained in:
Hemanth.HM 2015-12-19 22:25:07 +05:30
parent 7f3f56c62e
commit 6197057dc7
2 changed files with 20 additions and 0 deletions

View File

@ -69,6 +69,8 @@
* [Fetch pull request by ID to a local branch](https://github.com/git-tips/tips#fetch-pull-request-by-id-to-a-local-branch) * [Fetch pull request by ID to a local branch](https://github.com/git-tips/tips#fetch-pull-request-by-id-to-a-local-branch)
* [Show the most recent tag on the current branch.](https://github.com/git-tips/tips#show-the-most-recent-tag-on-the-current-branch) * [Show the most recent tag on the current branch.](https://github.com/git-tips/tips#show-the-most-recent-tag-on-the-current-branch)
* [Show inline word diff.](https://github.com/git-tips/tips#show-inline-word-diff) * [Show inline word diff.](https://github.com/git-tips/tips#show-inline-word-diff)
* [Dont consider changes for tracked file.](https://github.com/git-tips/tips#dont-consider-changes-for-tracked-file)
* [Undo assume-unchanged.](https://github.com/git-tips/tips#undo-assume-unchanged)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc --> <!-- @doxie.inject end toc -->
@ -485,5 +487,15 @@ git describe --tags --abbrev=0
git diff --word-diff git diff --word-diff
``` ```
## Dont consider changes for tracked file.
```sh
git update-index --assume-unchanged <file_name>
```
## Undo assume-unchanged.
```sh
git update-index --no-assume-unchanged <file_name>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. --> <!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end --> <!-- @doxie.inject end -->

View File

@ -276,5 +276,13 @@
{ {
"title": "Show inline word diff.", "title": "Show inline word diff.",
"tip": "git diff --word-diff" "tip": "git diff --word-diff"
},
{
"title": "Dont consider changes for tracked file.",
"tip": "git update-index --assume-unchanged <file_name>"
},
{
"title": "Undo assume-unchanged.",
"tip": "git update-index --no-assume-unchanged <file_name>"
} }
] ]