ignoring any 'bin' directory on a git project

前端 未结 15 1646
暖寄归人
暖寄归人 2020-11-22 16:45

I have a directory structure like this:

.git/
.gitignore
main/
  ...
tools/
  ...
...

Inside main and tools, and any other directory, at an

15条回答
  •  花落未央
    2020-11-22 17:22

    As a notice;

    If you think about .gitignore does not work in a way (so added foo/* folder in it but git status still showing that folder content(s) as modified or something like this), then you can use this command;

    git checkout -- foo/*

提交回复
热议问题