TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Email and Git = <3

289 点作者 pmarin超过 1 年前

27 条评论

BaculumMeumEst超过 1 年前
I appreciate the effort here, but after learning the workflow and having to get all this set up on a few computers, having to configure git send-mail is honestly just needlessly annoying and absurd.<p>Organizations that insist on using workflows like git send-mail and mailing lists not only drive away a significant number of potential contributors, but they also form a weirdly religious culture that fetishizes needlessly painful process and is incapable of improvement
评论 #37856247 未加载
评论 #37855989 未加载
评论 #37857308 未加载
评论 #37856159 未加载
评论 #37856196 未加载
评论 #37856426 未加载
评论 #37856669 未加载
评论 #37861993 未加载
评论 #37859623 未加载
评论 #37857047 未加载
评论 #37859896 未加载
评论 #37858725 未加载
评论 #37856133 未加载
评论 #37857181 未加载
评论 #37860822 未加载
评论 #37875537 未加载
评论 #37858433 未加载
thayne超过 1 年前
I&#x27;ve used email-based workflow for a few contributions I&#x27;ve made.<p>The git-send-email part isn&#x27;t too bad. It&#x27;s everything else I have a problem with:<p>- You can&#x27;t subscribe to a single PR&#x2F;bug&#x2F;feature-request thread. Subscription to the mailing list is all-or-nothing. And no, setting up email filters is not a reasonable solution.<p>- Email clients are pretty much universally terrible. Especially if you want to use the same client for your git flow as you do for regular email. Most clients don&#x27;t handle inline-replies well, and require some extra work to send plain text emails. Clients that do work well for that often have a steep learning curve, and are missing features if you want to use it for general email.<p>- The flow for &quot;Dealing with feedback&quot; in this tutorial will start a new email thread instead of replying to the existing one. There is a way to reply to an existing thread with send-email, but it is kind of involved since you have to look up the message id of the email you are replying to (which may or may not be easy depending on your email client). And even then, I&#x27;ve had mixed success with it.<p>- Although I haven&#x27;t been on the other side of it, it seems like reviewing the patch would be somewhat difficult without additional tooling. Especially comparing new versions dealing with feedback to the original version.<p>- Again, I haven&#x27;t been on that side of it, but it seems like applying the changes from an email would be a bit of a pain compared to just pressing &quot;merge&quot;.<p>- You can run into issues if your lines of code are more than 78 characters long. I used git-send-email to send in a patch once that had this, but the email client of the receiver couldn&#x27;t handle long lines, so I had to resend it with the patch as an attachment.<p>- Some mailing lists require you to subscribe before you can send a patch. And if the list is pretty active, that can flood your inbox. See my first point.<p>- etc.
评论 #37862224 未加载
keepamovin超过 1 年前
I love this. This is how it was done back in the days of usenet. People would email patches to the linux kernel. Hackers, working alone, late at night, strange times, strange places. Cultivating their work and skills and then ... <i>shoot</i> ... sending an email! Their contribution. So cool!<p>Maybe we should go back to this. Get rid of the whole github thing. Every group their own little mailing list. Laboring in private!
评论 #37855877 未加载
评论 #37855749 未加载
评论 #37855796 未加载
评论 #37855751 未加载
评论 #37855833 未加载
vimsee超过 1 年前
Not related to Git + git-email. I just want to say that I love the way this website is structured. Also, it renders fast.
评论 #37856124 未加载
MatthiasPortzel超过 1 年前
&gt; Warning! Some people think that they can get away with sending patches through some means other than git send-email, but you can&#x27;t.<p>Could someone elaborate on this? Obviously it’s not intended, but is there anything wrong, from a technical standpoint, with using `git format-patch`, zipping the result, attaching it to an email using a GUI email client, and sending it to a maintainer who unzips and runs `git am`?
评论 #37856369 未加载
评论 #37857791 未加载
评论 #37856285 未加载
评论 #37856434 未加载
ligurio超过 1 年前
I appreciate the effort here, but in the proposed workflow are missed steps with subscribing to a mailing list. Without proper subscriptions and confirming subscription, your mails with patches will go to trash.
评论 #37857373 未加载
ryanisnan超过 1 年前
Email-driven contribution systems, no thanks. Why anyone would, in 2023, elect to use email as the backbone for their development processes eludes me.
评论 #37877248 未加载
IsaacSchlueter超过 1 年前
I enjoy tutorials like this, in the same way and for the same reasons that I enjoy videos where people make cutting tools out of obsidian that they chip by hand.<p>Personally, though, when I have to actually cut something, I use stainless steel knives or scissors, which are cheap and readily available and do a much better job. Same with pull requests. But historical reenactment can be a fun pastime.
jchw超过 1 年前
Personally, I enjoyed using Git with e-mail when Wine still used it. That said, the major improvement of moving to GitLab is that it&#x27;s now easier to track changesets individually, as there is now a single place to look for a given changeset, rather than having to follow chains of e-mails.<p>And <i>that</i> having been said, I really GitHub&#x2F;GitLab&#x2F;etc. could move on from the pull request model and into a more change-oriented model like Gerrit or Phabricator. These are <i>clearly</i> better models in my opinion, and for most uses it&#x27;s not even dramatically different.
webdevver超过 1 年前
I wish I could &quot;preview&quot; sending my patch to mailing lists. I&#x27;ve considered the idea of having a localhost mailing list for the sole purpose of sending it there just to make sure that i&#x27;ve got everything setup right, but haven&#x27;t gotten around to doing it yet.
评论 #37857374 未加载
评论 #37856163 未加载
评论 #37857334 未加载
darau1超过 1 年前
Just dropping this gem of a talk[1], for the uninitiated. There is a place for this, even if people in the thread have never seen it.<p>[1]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=vyenmLqJQjs">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=vyenmLqJQjs</a>
shmichael超过 1 年前
Amending commits, while having the advantage of keeping the git tree pristine at every single point, is incredibly uncomfortable for async workflows such as the one suggested, where your review might take hours&#x2F;days and you want to continue coding in a forked branch. Upstreaming any code review changes becomes a pain as git treats the two branches as completely distinct.
评论 #37856023 未加载
Semaphor超过 1 年前
Shown to HN on April 2019: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19574257">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19574257</a>
tormeh超过 1 年前
Is there any collaboration tool (reviews, etc.) that uses git itself to sync the status? Adding email or whatever seems unnecessary, and github et al. seem contrary to the spirit of git.
评论 #37856900 未加载
stockhorn超过 1 年前
off topic, but why does the page (step 2) rant about protonmail?<p>Can somebody elaborate?<p>&gt;Be advised that Protonmail is generally known to be a pretty bad email host. [...] Not to mention their mistreatment of open source and false promises of security! You should consider a different mail provider.
评论 #37899694 未加载
mvdtnz超过 1 年前
The world has moved on. Products like Github and Gitlab supercharge these capabilities so far beyond what the Linux Core team are doing with their email lists.
talent_deprived超过 1 年前
Oh, I thought this was like a PR notification system, it&#x27;s to actually send the diff to an email list. And the recipients would pull in those changes from the email? I think that&#x27;s kind of how things worked a long time ago IIRC. Is the goal that this would be as official as how we push to remote, then file a PR now?<p>Actually, if you want to cut out all the systems like github or git lab, why wouldn&#x27;t the team just set up a VPS with standard ssh access and that would be the main repo people push to since git supports many protocols like ssh, and even file:&#x2F;&#x2F; (which I use for my local projects which are backed up).<p>It&#x27;s easy for the VPS admin to add new team members, just a standard Linux account. It might be possible to even set up a restricted account so the member ssh&#x27;ing in a commit using git only has access to the repo and can&#x27;t get a login shell.
gwd超过 1 年前
One thing this is missing is cover letters for longer series. Last time I checked that was the biggest pain: the fact that there&#x27;s no real convenient way to store the cover letters; `git send-email --cover` will expect you to compose a new one every time.
pyrolistical超过 1 年前
This is the fediverse they want
da39a3ee超过 1 年前
Please do not contribute to this silly archaic practice. It was once not silly. It is now archaic, and it is silly to do it now that we have vastly superior tools.
manojlds超过 1 年前
Weird way to list and sort OSs there.<p>Microsoft Windows but last, due to the W I guess but macOS has no Apple in it.
评论 #37855739 未加载
评论 #37858188 未加载
Am4TIfIsER0ppos超过 1 年前
Too bad google has disabled &quot;insecure apps&quot; meaning I have a couple of ffmpeg patches sitting around because I haven&#x27;t yet migrated it to my own domain. I thinking of sending from &quot;FuckYouGoogle&quot;.
评论 #37868334 未加载
lusus_naturae超过 1 年前
Seems like you&#x27;re sending plain text emails, no? I have links for websites, resume etc. in the signature so I am not sure how this is conducive to that. Unless there is a method to add a signature with links?
评论 #37858915 未加载
haolez超过 1 年前
Why not use a branch? This was the only surprisingly part to me. Won&#x27;t this get messy when I try to pull the code later on? I don&#x27;t know how the maintainer is going to merge my patch.
评论 #37856193 未加载
keep_reading超过 1 年前
This is so absurd. The complexity of this setup is off the charts. If you thought memorizing terrible inconsistent git commands was bad enough, this just cranks it to 11
samcat116超过 1 年前
Not really a huge fan of this whole method, but the GitHub CLI is really well thought out and means I basically never need to leave the terminal if I don&#x27;t want to.
评论 #37870867 未加载
评论 #37868295 未加载
评论 #37877296 未加载
0xbadcafebee超过 1 年前
It is way faster and easier for me to just open up my email client, attach a patch, and send it.