Ask HN: Could somebody use GPT make Git super easy to use?
A lot of amazing thingss are being done with AI now.
Could someone train GPT to automate most of Git workflows and make the rest super easy?
I would think if you can use it to code an entire whole application, it can do Git.
I would try it myself, but I have no idea how to use the various AI tools.
10 comments
[ 4.7 ms ] story [ 48.4 ms ] threadNow this would be based in the context that the wonderful AI knew What client, what project, what tools, what team, what rules etc. knew the codebase, parsed and knew all the history,
So the CLI: AI# Hey, check in my code. AI# >Ok.
Which would contain in part:
Hey commit my code, ensure that all files are up to date. Handle all conflicts and manual merges that may arise based on your knowledge of the entire code base and the code I have just written.
Ensure to update whatever GitHub might need it. .. Ensure that all tests are run, ensure continuous integration runs.
Do whatever it is this company / client / project wants to happen after a commit. docker update restart containers Trigger lambdas Release.
Whatever ""
AI# > I would like to let you know that checking in your code was successful and all issues have been handled by me and all routines and procedures have been completed with success.
AI# > Would you like to play a nice game of chess?
Ok. I am on it. I am checking your code and handling all the boring stuff. All mergers have been handled by me. All testes have returned positive.
In the future, we'd probably want these:
Some other interesting ones: Extra-domain questions would be nice:> Copilot for CLI provides three shell commands: `??`, `git?` and `gh?`:
> `??` is meant as the general-purpose goto for arbitrary shell commands. It will compose commands and loops, and throw around obscure find flags to satisfy your query.
> `git?` is used for searching specifically for git invocations. Compared to ?? it will be more powerful at generating Git commands, and your queries can be more succinct when you don't need to explain that you're in the context of Git.
> `gh?` combines the power of the GitHub CLI command and query interface with the convenience of having AI generate the complicated flags and jq expressions for you.
On one hand git seems to be confusing and hard to grok.
But on the other hand I think once you get it it helps to enforce good coding practices, small working commits, good commit msgs, helps to understand the codebase better. I think all of the side effects of git are better in my brain than having a slightly better abstraction layer to make git do more magic for me.
What Assembly developers said about C; What C developers said about Java; What Java developers said about Python;
It's interesting though, this cycle can't keep going perpetually. We're already within striking distance of translating natural language into code; lots of us incorporate it into our workflows already. Of course, natural language doesn't ever completely translate into code without leaving an enormous trail of ambiguities in its wake. But I find this process of iteratively "sculpting" the generative model's output totally riveting. The other day I plugged my ChatGPT plugin into the GPT-4 backend for the first time. I don't know how popular HBO's Westworld is in these parts, but I thought of it instantly because the coding session I found myself immersed in was shockingly close to the dialogic narrative-rendering computer Dolores uses to make deadly, immersive entertainment.