• Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 day ago

    .gitignore doesn’t prevent things from being committed. It just tells git to ignore files that aren’t already being tracked. And you can easily override that with -f. Putting .gitignore inside of .gitignore will ignore itself (if it’s not already tracked).