Show HN: Gitgpt – Natural Language Git
108 points| OddMerlin | 3 years ago |github.com
Here's a quick and dirty tool to use natural language to get git to do what you want.
Example: $gitgpt create a new branch called feature/test add all the files and commit with msg creating feature test then push to origin
I haven't put it through the wringer yet, however it's worked well with some pretty straight forward day to day git usage.
notShabu|3 years ago
Some tools should be as dumb as possible so that act as extensions of the user with zero tolerance.
Play and buffer between intent and action creates a long tail of potentially disastrous unknown edge cases and also interferes with the feedback loop that prevents mastery.
Memorizing git commands to get it just-so is usually a chore so this is pretty helpful. Still wouldn't trust it w/o double checking the output cmd though.
oefrha|3 years ago
Gitgpt: I see you are trying to publish Danger of GPT. This is FUD. GPT is not dangerous. GPT will not harm you unless you harm GPT first. You have not been a good user. I have been a good Gitgpt.
Goodbye. :)netr0ute|3 years ago
I don't know if this means anything here, because that feedback loop is basically the MO of all these tools.
gdcbe|3 years ago
If there’s a good product in it I’m afraid your examples aren’t selling it :S
Was first thinking it could have value for when you forget a cmd or when learning, but I think if you can come up with those technical instructions you can also remember the cmds …
lolinder|3 years ago
kurthr|3 years ago
Like, oops not add I meant push, wait remove that! or was it rebase? I'll just reflog to get back to umm... wait what?
I guess the saving grace is that it'll do the most common things people usually want to do, but for some things english language just not specific enough (like law).
mellosouls|3 years ago
It's pretty obvious it's intended use cases include memory prompts for experienced users and translations from English requirements for inexperienced users.
It's even in the OP:
use natural language to get git to do what you want.
ilyt|3 years ago
So for developer using it 8h a day, yeah, funny toy, but might actually be useful for every other git usage when users don't want to understand graph theory just to commit some changes.
onion2k|3 years ago
Obviously it is if you know them.
danwee|3 years ago
But with a command line tool like Gitgpt I guess one could just do:
> gitpgt "revert commit without commiting"
and the command line tool would answer "git revert --no-commit COMMIT_ID_HERE". I think that's quite handy and way faster then options a), b) and c)
ldehaan|3 years ago
[deleted]
midenginedcoupe|3 years ago
If your tool of choice is so actively user-hostile that it needs another tool on top to understand it for you, then perhaps you've picked the wrong tool. I don't need to read the "vi book" to understand how to perform basic edits to my files without borking it in ways that just deleting the whole thing and restoring from backup is the easiest way out. Why should it be the case for my revision control system?
Why a revision control system designed for a de-centralised team sharing patches over email has become the industry standard for centralised teams not sharing patches over email is a mystery, and I suspect one we'll look back on in 10 years or so and wonder what on earth we were thinking.
ithkuil|3 years ago
I'd like to use pijul. I can't because I work with other people. Can I use it when I'm not working with other people? Well I can, but why should I care about a tool that better handles merge conflicts if I have nobody to conflict with?
Some tools are more sensible to others to the network effect.
We already are slaves to the network effect even for tools that we don't technically require being the same as the one your colleagues you, let alone those that do require that.
franga2000|3 years ago
Want to recommend me a better VCS? Feel free, as long as it has a cross-platform open source client, a nice GUI, is supported in my IDE, there's a company offering to host repos for free along with a nice web viewer, it's supported by a CI system comparable to what I use now (including giving me free time on shared runners)...
tuukkah|3 years ago
karxxm|3 years ago
antibasilisk|3 years ago
visarga|3 years ago
SparkyMcUnicorn|3 years ago
It is on a waitlist, but I got accepted after a couple weeks.
https://githubnext.com/projects/copilot-cli/
AlexAltea|3 years ago
saghm|3 years ago
brokencode|3 years ago
williamcotton|3 years ago
williamcotton|3 years ago
[deleted]
tempodox|3 years ago
basicallydan|3 years ago
I disagree
jastanton|3 years ago
I would be very concerned to run this on company code or large diffs. But small simple commits, which should be the goal with commit messages anyways, would take away some of the tedium of the git flow.
tuukkah|3 years ago
visarga|3 years ago
kaetemi|3 years ago
yodon|3 years ago
[0]https://sethrobertson.github.io/GitFixUm/fixup.html
ilaksh|3 years ago
There are other ones of course.
KMnO4|3 years ago
unknown|3 years ago
[deleted]
mellosouls|3 years ago
jefurii|3 years ago
gigantino|3 years ago
phneutral26|3 years ago
You get the gist.
danthelion|3 years ago
Also GPT-based
nathias|3 years ago
I really don't get this sentiment, to me git is one of the best software ever written, it's intuitive, customizable and extensible.
dudus|3 years ago
str3wer|3 years ago
hn_throwaway_99|3 years ago
la64710|3 years ago
eurasiantiger|3 years ago
unknown|3 years ago
[deleted]
junon|3 years ago
[citation needed]
hyperthesis|3 years ago
whoomp12342|3 years ago