Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   git-update-index    ( 1 )

зарегистрируйте содержимое файла в рабочем дереве в индекс (Register file contents in the working tree to the index)

Конфигурация (Configuration)

The command honors core.filemode configuration variable. If your
       repository is on a filesystem whose executable bits are
       unreliable, this should be set to false (see git-config(1)). This
       causes the command to ignore differences in file modes recorded
       in the index and the file mode on the filesystem if they differ
       only on executable bit. On such an unfortunate filesystem, you
       may need to use git update-index --chmod=.

Quite similarly, if core.symlinks configuration variable is set to false (see git-config(1)), symbolic links are checked out as plain files, and this command does not modify a recorded file mode from symbolic link to regular file.

The command looks at core.ignorestat configuration variable. See Using "assume unchanged" bit section above.

The command also looks at core.trustctime configuration variable. It can be useful when the inode change time is regularly modified by something outside Git (file system crawlers and backup systems use ctime for marking files processed) (see git-config(1)).

The untracked cache extension can be enabled by the core.untrackedCache configuration variable (see git-config(1)).