* 📝 docs(README.md): replace opencommit with oc in commands

The commands in the README.md file have been updated to use the new 'oc' command instead of the old 'opencommit' command. This improves consistency with the naming conventions and makes it easier to use the tool.
This commit is contained in:
di-sukharev
2023-03-06 23:41:47 +08:00
parent e89fc96732
commit 2527c80f2f
+8 -8
View File
@@ -60,13 +60,13 @@ oc
To add emoji: To add emoji:
```sh ```sh
opencommit config set emoji=true oc config set emoji=true
``` ```
To remove emoji: To remove emoji:
```sh ```sh
opencommit config set emoji=false oc config set emoji=false
``` ```
### Postface commits with descriptions of changes ### Postface commits with descriptions of changes
@@ -74,13 +74,13 @@ opencommit config set emoji=false
To add descriptions: To add descriptions:
```sh ```sh
opencommit config set description=true oc config set description=true
``` ```
To remove description: To remove description:
```sh ```sh
opencommit config set description=false oc config set description=false
``` ```
## Git hook ## Git hook
@@ -90,20 +90,20 @@ You can set opencommit as Git [`prepare-commit-msg`](https://git-scm.com/docs/gi
To set the hook: To set the hook:
```sh ```sh
opencommit hook set oc hook set
``` ```
To unset the hook: To unset the hook:
```sh ```sh
opencommit hook unset oc hook unset
``` ```
To use the hook: To use the hook:
```sh ```sh
git add <files...> git add <files...>
git commit git commit
``` ```
Or follow the process of your IDE Source Control feature, when it calls `git commit` command — OpenCommit will integrate into the flow. Or follow the process of your IDE Source Control feature, when it calls `git commit` command — OpenCommit will integrate into the flow.