From 0017f214dddff33a6d9df7ef0795121c6410a8f6 Mon Sep 17 00:00:00 2001 From: chao-xian Date: Mon, 21 Mar 2022 20:06:23 +0000 Subject: [PATCH] Add section on Atomic Commits --- source/standards/source-code/working-with-git.html.md.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/standards/source-code/working-with-git.html.md.erb b/source/standards/source-code/working-with-git.html.md.erb index 3ff9effc7..36f84af9a 100644 --- a/source/standards/source-code/working-with-git.html.md.erb +++ b/source/standards/source-code/working-with-git.html.md.erb @@ -31,6 +31,12 @@ You can configure some CI systems to check out the default branch rather than ha ## Commits +### Atomic commits + +Each commit should be atomic, meaning that each commit should only include changes that achieve a given, granular, step. +They should also be logical steps that follow each other. As Anna Shipman describes it, +[they should tell a story](https://www.annashipman.co.uk/jfdi/good-pull-requests.html#make-the-pull-request-tell-a-story). + ### Commit messages Writing good commit messages is important. Not just for yourself, but for other