Skip to content

Ezgit is simple tool to streamline your git process. It uses OpenAI to refactor code and auto-generate git messages.

Notifications You must be signed in to change notification settings

robosushie/ezgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ezgit

Ezgit is simple tool to streamline your git process. It uses OpenAI to refactor code and auto-generate git messages.

Table of Contents

Installation

  1. Install the package via npm:
npm install @robosushie/ezgit

Usage

  1. Initialization: After installing, you need to initialize ezgit in your project directory:
npx ezgit init

This will check for the presence of a package.json file to ensure you're in a Node.js project directory and then create an ezgit.config.js configuration file.

  1. Committing Changes: To auto-generate a detailed commit message using OpenAI:
npx ezgit commit
  1. Refactoring Code: To auto-refactor a file using OpenAI:
npx ezgit refactor --path <file path>
  1. Other Git Commands: You can also use ezgit to run other git commands:
npx ezgit [your-git-command]

Replace [your-git-command] with any git command you wish to execute.

Features

  • Auto-Generated Commit Messages: Uses OpenAI's GPT-3.5-turbo model to generate detailed and context-rich commit messages based on your code changes.
  • Code Refactoring and Optimizations: Receive recommendations for code improvements and optimizations, ensuring best practices and efficient code. (pending)

Dependencies

  • dotenv: For environment variable management.
  • openai: To interact with OpenAI's API.
  • yargs: For command line argument parsing.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the ISC License. See LICENSE for more information.

Contact

robosushie - GitHub Profile

Project Link: https://github.com/robosushie/ezgit

Acknowledgements

About

Ezgit is simple tool to streamline your git process. It uses OpenAI to refactor code and auto-generate git messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published