Ignoring an already checked-in directory's contents?

后端 未结 6 1405
说谎
说谎 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:21

    TL;DR to clean up your git repository and make sure ALL your ignored items are indeed ignored:

    git rm -r --cached .
    git add .
    git commit -m "Clean up ignored files"
    

    Note: you don't need to specify a directory, this way your are cleaning the entire remote repo.

    To go further read this

提交回复
热议问题