Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Mail2github – commit something to GitHub via email (github.com/ulrischa)
20 points by ulrischa 32 days ago | hide | past | favorite | 13 comments



Super handy. I wish there was a way to create an issue as well from the email as well.


I will add it


Whats the reason to build your own command structure for filename, author, etc. instead of using the existing git tools like `git format-patch` and using `git am` for applying patches?


I don't use git. It works via email. Or do you mean using the git commands in the email subject?


There is an existing, well-established patch email workflow which git natively supports. Using that, and extending it when necessary, would make more sense.

See git-send-email and git-am.


But therefore I need git installed, right? I want to use it i.e. to commit some text via mail on my smartphone


No, but you need to be able to write a well-formatted diff, which is pretty much the minimum requirement for sharing changes.

Emailing the entire new file every time will not work in anything but local tests as it cannot handle change conflicts. The format needs to know which parts of the file you changed, so your change does not accidentally undo other changes merged ahead of you.


I mean the format for selecting paths and so on. Git already has a standard patch format for sending changes via email and a builtin utility for applying them to a repo, so why not use that format?


But I need to have git installed. I simply want to send something to my repo via email from my smartphone.


For the mentioned workflow in chatgpt I'm guessing chatgpt can generate the email body for you in the correct format, but sure it is a step over just copy-pasting the raw text.


Wasn't git developed to move kernel development workflow away from email?


This is especially useful to archive ai chats on github. It works with email so you do not have to install any app


? I didn't get what you just said




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: