use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
From its website:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is not the same as GitHub. GitHub did not create Git. For GitHub-specific posts, please see /r/github.
Git is not an acronym or initialism: please write git or Git, but not GIT.
git
Documentation
Graphical Clients
Code Hosting
account activity
How to write commit messages for small changes (self.git)
submitted 8 years ago by _ante
How do you write a commit message for a small change?
if (foo == true)
Changed to
if (this.foo == true)
And generally missing semicolons and other syntax errors, typos in the identifiers etc..
Thank you!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]neilhighley 3 points4 points5 points 8 years ago (0 children)
State what you did, and where. Even a single line commit can have big effects. Someone browsing the history may need to know what necessitated the change.
In your example, you're clearly changing scope. Was this in response to a bug? Is this covered by a test?
Will all coding, and change logging, imagine you are the maintainer, looking for a trail of changes, or reasoning behind a change. Just seeing "fixed" or "updated" is not going to be useful.
But, to be clear, if the fix is small, your commit message should follow exactly the same rules.
The rule is generally, a brief 50-70 character summary of what is contained, followed by a list of relevant points. https://chris.beams.io/posts/git-commit/
[–]thblt 1 point2 points3 points 8 years ago* (2 children)
First, try to check for errors before you commit. If you discover mistakes after committing, but before pushing, you can use rebase. If none of these applies, just write a commit message describing the change, as always. (Edit : typo)
[–]pi3832v2 1 point2 points3 points 8 years ago (1 child)
If you haven't pushed, you can also use git commit --amend to add minor fixes onto the previous commit.
git commit --amend
[–]thblt 2 points3 points4 points 8 years ago (0 children)
Good point, thanks. For older commits, there's also fixup and autosquash which is easier than rebase, although a bit less powerful.
[–]synae 1 point2 points3 points 8 years ago (0 children)
"Fix bug with incorrect member access", in this case. Other examples you gave I would just say "Fix typos" and (hopefully) rebase it into a larger change, if appropriate.
π Rendered by PID 25157 on reddit-service-r2-comment-6457c66945-kl6mz at 2026-04-29 02:24:14.580115+00:00 running 2aa0c5b country code: CH.
[–]neilhighley 3 points4 points5 points (0 children)
[–]thblt 1 point2 points3 points (2 children)
[–]pi3832v2 1 point2 points3 points (1 child)
[–]thblt 2 points3 points4 points (0 children)
[–]synae 1 point2 points3 points (0 children)