Telling git to ignore symlinks

后端 未结 8 1988
说谎
说谎 2020-12-08 06:13

This question has appeared in similar forms here and here, but they don\'t seem to match up with what I\'m looking for.

I\'m making a project in StaticMatic, a Ruby

8条回答
  •  旧时难觅i
    2020-12-08 06:44

    This seems to be a better idea

    find . -type l | sed -e s'/^\.\///g' >> .gitignore
    

    Find outputs a "./" prefix for all files. Unless you trim it off, gitignore is unable to act on them . Once you trim the ".\" at the beginning , it works like a charm

提交回复
热议问题