AutoGPT
AutoGPT copied to clipboard
Implemented remaining git operations
Background
Currently, the remaining git commands are not implemented in git_operations.py, due to which, Auto-GPT tries to write a Python script to run those commands. This is less efficient and could be optimized in a straightforward way by implementing and hardcoding the remaining git commands - this would eventually help in solving https://github.com/Significant-Gravitas/Auto-GPT/issues/15 . These functions are generated by chatGPT itself.
Changes
Added the following git operations: add, commit, push, pull, init
Documentation
NA
Test Plan
Not tested
PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [ ] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ⬜️ Ignored (Inspect) | May 5, 2023 2:39am |
as mentioned in some other issues, coding this up with the hard-coded assumption of using github credentials may have worked initially - but it's obvious that more and more folks are using this with repos beyond just those hosted on github. Thus, I would suggest to provide an option to also configure these defaults - possibly including the user/email fields, but at least the credentials to login for pulling/pushing respectively.
For the time being, the agent will typically invoke the CLI for me, because the command interface is too limited.
Added to discussion #3856
Please consider updating this PR according to the feedback so that it can be considered for the upcoming release.
Closing this for lack of activity. Please let us know if you still want to get this in. :)