Telling git to ignore symlinks

后端 未结 8 1964
说谎
说谎 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:49

    My answer from another question is relevant:

    for f in $(git status --porcelain | grep '^??' | sed 's/^?? //'); do
        test -L "$f" && echo $f >> .gitignore;
        test -d "$f" && echo $f\* >> .gitignore;
    done
    

提交回复
热议问题