@@ -164,6 +164,7 @@ align="right" width="20%" height="auto"/>
164
164
* [ Reusing this project] ( #reusing-this-project )
165
165
* [ Contributing] ( #contributing )
166
166
* [ You and your project] ( #you-and-your-project )
167
+ * [ Commits] ( #commits )
167
168
* [ Getting your project started] ( #getting-your-project-started )
168
169
* [ The JDK] ( #the-jdk )
169
170
* [ Use Gradle or Maven] ( #use-gradle-or-maven )
@@ -351,6 +352,30 @@ I'd love a conversation with you.
351
352
352
353
---
353
354
355
+ ## Commits
356
+
357
+ Have you looked at a PR on a project that long, complex, and touched many
358
+ files?
359
+ I'm not a fan of reviewing these, and I suspect you aren't either.
360
+
361
+ For projects I'm on, I want commits like this:
362
+ - ** Small** &mdash ; I can carry context in my head, and understand the change
363
+ - A good commit message &mdash ; should:
364
+ - Follow standard Git recommendations.
365
+ One of many examples is from [ Toni Cardina
366
+ Bardos] ( https://gist.github.com/tonibardina/9290fbc7d605b4f86919426e614fe692 )
367
+ who summarizes common advice.
368
+ See the [ official Git
369
+ documentation] ( https://git-scm.com/docs/git-commit#_discussion ) .
370
+ This is a good discussion with contributors to your project
371
+ - Be sensible for others
372
+ <a href =" https://xkcd.com/1296/ " >
373
+ <img src =" ./images/git_commit.svg " alt =" Git Commit " align =" center " width =" 20% " height =" auto " />
374
+ </a >
375
+ - Be able to easily check the build pipeline for _ every_ commit
376
+
377
+ ---
378
+
354
379
<!-- TODO: Should this section be moved or removed? It is awkward here -->
355
380
## You and your project
356
381
0 commit comments