Ignoring an already checked-in directory's contents?

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

    Ok, it seems that you must first do a check-in with the directory completely empty (neither old nor new files), and any files added thereafter will be ignored. If you remove the old files add and new ones before committing, the new ones are added to the repo although they should be ignored.

    At least, this worked for me in this situation. Would still be great if anyone could provide more insight on what's going on.

提交回复
热议问题