HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git update-index — Git command for manipulating the index. More information: <https://git-scm.com/docs/git-update-index

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandgit update-indexcliformanipulatinggit

Problem

How to use the git update-index command: Git command for manipulating the index. More information: <https://git-scm.com/docs/git-update-index>.

Solution

git update-index — Git command for manipulating the index. More information: <https://git-scm.com/docs/git-update-index>.

Pretend that a modified file is unchanged (git status will not show this as changed):
git update-index --skip-worktree {{path/to/modified_file}}

Code Snippets

Pretend that a modified file is unchanged (`git status` will not show this as changed)

git update-index --skip-worktree {{path/to/modified_file}}

Context

tldr-pages: common/git update-index

Revisions (0)

No revisions yet.