Skip to content

Best Practices for Writing Code

Andrew Wooldridge edited this page May 2, 2013 · 10 revisions

Diff Before Every Commit

Get into the habit of running git diff or git diff --cached before every commit.

Commits Should Be Granular

You should keep each commit as granular as possible. For instance, do not check in 2 bug fixes in one commit -- separate them out into 2 commits.

2

Clone this wiki locally