Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by singpolyma3

17 hours ago

Better would be to ban both git add . And git commit -a

2 comments

singpolyma3

Reply

matijs  16 hours ago

Ban `git add .` for sure, but what’s so bad about `git commit -a`? It only adds/removes what was already under version control.

  • singpolyma3  9 hours ago

    Makes it easy to commit things you didn't expect without having reviewed them

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities