first β let's grow my twitter, so i can tell about my inventions quicker and make the world even better place (or not, idk)
A month ago I opensourced OpenCommit.
Previous post got 60k views and 280 likes. Now OpenCommit is 2.6k stars.
I've merged 39 PRs and here is what's new:
- if you change model to GPT-4 β it answers WHY changes were done π€―
- locale support of 10 languages.
- select files you want to stage and commit.
- choose a remote you want to push to.
- OpenCommit now uses tiktoken to accurately count openAI tokens.
- better large diffs splitting (you can commit changes of any size)
- add any
git commit
arguments tooc <...args>
it will be passed togit commit <...args>
. - hook now works on all platforms, run
oc hook set
to integrate OpenCommit into IDE Source Control.
Well this is it so far, thanks to all the contributors <3 Feel free to PR!
How to install OpenCommit
Simply install it globally with npm, to use in any repo:
npm i -g opencommit
After installing type oc
and hit "Enter" in a terminal:
oc
If you want to edit a commit and make OpenCommit to be used by your IDE do:
oc hook set
That's it β have fun ;)
Top comments (22)
I installed it a few weeks ago and love it, how do I update it to use GPT-4?
here you go github.com/di-sukharev/opencommit#...
How do you switch back to 3.5?
oc config set model=gpt-3.5
?oc config set model=gpt-3.5-turbo
Thanks,
I am getting this error
β β Error: Unsupported config key: model
I don't use commits frequently in my work, but it seems that it saves a lot of time.
Congrats with new version
What are its pros and cons vs the aicommits project?
with OC you can commit extremely large batches of files, more CLI features for your convenience, localisation for 10+ languages, lots of settings like switching to GPT-4 (which understands WHY changes were done)
I've tried it and even returned back to say thanks!
thats great!
Is there an offline version that doesn't share code with OpenAI servers?
nope, but PRs are welcome <3
Do you know what to include in the PR?
Commit messages should describe why code is changed, not what is changed...
it does if you switch to GPT-4 via the settings
Would like to see examples that are more complex than "remove / add something".
However may be OC has read your production code
its open-source bro, check the code lol
nice! I mean really nice!
commit-gpt
what is up with it? it looks abandoned, last issue closed in 2022