Skip to content

Commit 3b398f8

Browse files
authored
Merge pull request #100 from ZuBB/master
fix(commit): use proper switch to exclude staged stuff
2 parents 699b36e + 6f732ee commit 3b398f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ git rebase -i --autosquash
685685

686686
## skip staging area during commit.
687687
```sh
688-
git commit -am <commit message>
688+
git commit --only <file_path>
689689
```
690690

691691
## List ignored files.

tips.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
"tip": "git rebase -i --autosquash"
282282
}, {
283283
"title": "skip staging area during commit.",
284-
"tip": "git commit -am <commit message>"
284+
"tip": "git commit --only <file_path>"
285285
}, {
286286
"title": "List ignored files.",
287287
"tip": "git check-ignore *"

0 commit comments

Comments
 (0)