search

Home  >  Q&A  >  body text

git ignores files. When ignored, it can be cloned but cannot be submitted.

1. I created a basic version, which contains the config directory, which contains the user's personal information.
2. I want colleagues to clone this project and include the config directory, but the contents of the modified config directory cannot be submitted.

迷茫迷茫2756 days ago701

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-06-05 11:10:47

    Listed in directory

    /config
    /config/a.conf
    /config/b.conf

    Create ignore configuration file .gitignore

    ./config/*.conf
    !./config/*.default.conf
    

    '
    Copy a b into a.default.conf, so you only need to tell your colleagues to copy and remove the default. This way you can check whether the default has changed and ensure that there is no conflict

    reply
    0
  • Cancelreply