Hacker News new | ask | show | jobs
by manicdee 4152 days ago

    git config --global core.excludesfile ~/.config/git/ignore

    cat >> ~/.config/git/ignore
    .DS_Store
    .AppleDouble
    .LSOverride
    .AppleDB
    .AppleDesktop
    .apdisk
    .fseventsd
    .Trashes
    .Spotlight-V100
    ._*
    Icon
    Network Trash Folder
    Temporary Items
    Icon
2 comments

Why not .* ?

I can't think of a good reason to commit hidden files.

you have missed

mkdir -p ~/.config/git