瀏覽代碼

git-update-index: add page (#3911)

Randy Sugianto (Yuku) 5 年之前
父節點
當前提交
60a7b9bf9f
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pages/common/git-update-index.md

+ 8 - 0
pages/common/git-update-index.md

@@ -0,0 +1,8 @@
+# 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}}`