Przeglądaj źródła

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

Randy Sugianto (Yuku) 5 lat temu
rodzic
commit
60a7b9bf9f
1 zmienionych plików z 8 dodań i 0 usunięć
  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}}`