Skip to content

Commit 23cbd04

Browse files
committed
feat(config): add options to skip commit and push prompts
1 parent 6fc7274 commit 23cbd04

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ This flag allows users to automatically commit the changes without having to man
9898
oco --yes
9999
```
100100

101+
You can also set this behavior permanently through configuration:
102+
103+
```
104+
oco config set OCO_SKIP_COMMIT_CONFIRM=true
105+
```
106+
107+
#### Skip Push Prompt
108+
109+
To skip the git push prompt after committing and never be asked whether to push, use:
110+
111+
```
112+
oco config set OCO_SKIP_PUSH_PROMPT=true
113+
```
114+
115+
This is useful when you want to commit changes without being prompted to push to the remote repository.
116+
101117
## Configuration
102118

103119
### Local per repo configuration
@@ -119,6 +135,8 @@ OCO_LANGUAGE=<locale, scroll to the bottom to see options>
119135
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=<message template placeholder, default: '$msg'>
120136
OCO_PROMPT_MODULE=<either conventional-commit or @commitlint, default: conventional-commit>
121137
OCO_ONE_LINE_COMMIT=<one line commit message, default: false>
138+
OCO_SKIP_COMMIT_CONFIRM=<skip commit confirmation prompt, default: false>
139+
OCO_SKIP_PUSH_PROMPT=<skip git push prompt after commit, default: false>
122140
```
123141

124142
Global configs are same as local configs, but they are stored in the global `~/.opencommit` config file and set with `oco config set` command, e.g. `oco config set OCO_MODEL=gpt-4o`.

0 commit comments

Comments
 (0)