diff --git a/docs/tools/civilint.md b/docs/tools/civilint.md
index 826ebe66627e8c2c4390b75c5db9c9886f1e621b..6dd26ef89a2d0a483954025b1b20c722a231cb46 100644
--- a/docs/tools/civilint.md
+++ b/docs/tools/civilint.md
@@ -7,7 +7,8 @@ Note that civilint may be invoked a few different ways:
 ```bash
 civilint # (no arguments) – Check style of any uncommitted changes.
 civilint some/file.php # Check style of a specific file (or list of files).
-git diff --name-only origin/4.6.. | civilint - # Check changed files
+git diff --name-only HEAD~1 | civilint - # Check your last commit
+git diff --name-only master | civilint - # Check for changes in your branch (compared to master)
 ```
 
 See also: