Ignoring an already checked-in directory's contents?

后端 未结 6 1389
说谎
说谎 2020-12-04 04:55

I have a git repository that\'s used only to hold graphics and sound files used in several projects. They are all in one directory without sub-directories. Now I just create

6条回答
  •  再見小時候
    2020-12-04 05:19

    This command will cause git to untrack your directory and all files under it without actually deleting them:

    git rm -r --cached

    The -r option causes the removal of all files under your directory.

    The --cached option causes the files to only be removed from git's index, not your working copy. By default git rm would delete .

提交回复
热议问题