diff --git a/pages/common/git-commit.md b/pages/common/git-commit.md index 61146a5b69..1c5984e2e6 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -25,7 +25,7 @@ - Commit only specific (already staged) files: -`git commit {{path/to/file1}} {{path/to/file2}}` +`git commit {{path/to/file1 path/to/file2 ...}}` - Create a commit, even if there are no staged files: diff --git a/pages/common/rubocop.md b/pages/common/rubocop.md index dc2b9ebeca..86b8ae822d 100644 --- a/pages/common/rubocop.md +++ b/pages/common/rubocop.md @@ -9,7 +9,7 @@ - Check one or more specific files or directories: -`rubocop {{path/to/file}} {{path/to/directory}}` +`rubocop {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` - Write output to file: @@ -21,11 +21,11 @@ - Exclude a cop: -`rubocop --except {{cop_1}} {{cop_2}}` +`rubocop --except {{cop1 cop2 ...}}` - Run only specified cops: -`rubocop --only {{cop_1}} {{cop_2}}` +`rubocop --only {{cop1 cop2 ...}}` - Auto-correct files (experimental):