Telling git to ignore symlinks

后端 未结 8 1970
说谎
说谎 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条回答
  •  借酒劲吻你
    2020-12-08 06:48

    My solution might seem silly, but I'd rather do this than update the .gitignore file every time a new file is added.

    I merely leave the links with a default name like "link to xxx" and then add the following line to my .gitignore file:

    link to *
    

    Then you just ensure you do not name any other files/folders with a name starting with "link to " and you're sorted.

提交回复
热议问题