(no title)
Arrowmaster | 10 days ago
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below for details.
You should never be putting "!.gitignore" in .gitignore. Just do `echo "*" > .gitignore; git add -f .gitignore`. Once a file is tracked any changes to it will be tracked without needing to use --force with git add.
BlackFly|10 days ago
ekipan|10 days ago
Personally if I need a build directory I just have it mkdir itself in my Makefile and rm -rf it in `make clean`. With the article's scheme this would cause `git status` noise that a `/build/` line in a root .gitignore wouldn't. I'm not really sure there's a good tradeoff there.
Aaron2222|10 days ago
Author's probably using Zsh, which interprets them by default.
AgentME|10 days ago
xg15|10 days ago
1718627440|9 days ago
nebezb|10 days ago
What an arrogant take. This is preference. Don’t mistake it for correctness.
smrq|10 days ago