Best practices
General best practices
Section titled “General best practices”- Commit often, but only with coherent changes.
- Use clear commit messages:
- Bad: “fix”
- Good: “Fix header display on mobile”
- Always create a branch for a new feature.
- Check
git statusandgit diffbefore committing. - Use
.gitignoreto avoid versioning unnecessary files.