git hooks - regenerate a file and add it to each commit?

前端 未结 1 1517
萌比男神i
萌比男神i 2021-01-19 13:04

I\'d like to automatically generate a file and add it to a commit if it has changed. Is it possible, if so, what hooks should I use?

Context: I\'m programming a CSS

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 13:41

    No, it won’t break anything. You can freely use git add in a pre-commit hook.

    0 讨论(0)
提交回复
热议问题