you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 4 weeks 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).

  • source
  • parent