mirror of
https://github.com/namibia/tips.git
synced 2025-01-23 23:28:30 +00:00
--assume-unchanged and no--assume-unchanged
This commit is contained in:
parent
7f3f56c62e
commit
6197057dc7
12
README.md
12
README.md
@ -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)
|
||||
* [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)
|
||||
* [Don’t 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)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -485,5 +487,15 @@ git describe --tags --abbrev=0
|
||||
git diff --word-diff
|
||||
```
|
||||
|
||||
## Don’t 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>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -276,5 +276,13 @@
|
||||
{
|
||||
"title": "Show inline word diff.",
|
||||
"tip": "git diff --word-diff"
|
||||
},
|
||||
{
|
||||
"title": "Don’t 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>"
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user