Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Save the email to your local machine (in gmail, click the 3 dots and choose download message). Then run

    git am < saved_email_file.eml


Right, thanks! (And using clipboard and stdin sounds even more convenient for small patches as a sibling comment suggests.)


Copy-paste may not work depending on how the email client renders the email. For example, if the email client doesn't preserve prefixed whitespace, then the resulting patch may be corrupted or not apply. Saving the actual email to a file on disk would avoid that issue.




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

Search: