From: David Aguilar <davvid@gmail.com>
To: Thiago Farina <tfransosi@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: 'git am' doubt
Date: Wed, 23 Sep 2009 16:54:33 -0700 [thread overview]
Message-ID: <20090923235433.GB80337@gmail.com> (raw)
In-Reply-To: <a4c8a6d00909231520s53be6654ibf74d4430e7e82f@mail.gmail.com>
On Wed, Sep 23, 2009 at 07:20:53PM -0300, Thiago Farina wrote:
> Hi,
>
> I'm trying to apply a patch from the mailing list using 'git am'.
>
> What I'm doing is:
>
> - In gmail:
> - Save original, then I copied the content to a text editor.
> - In text editor:
> - Remove the first empty line.
> - Save the file in the same directory where I have the git source.
> - In git directory:
> - $ git am -s ./filename.mbox
>
> Of course I'm doing something wrong here, but I don't know what.
> The error is:
> cat: /home/tfarina/git/.git/rebase-apply/next: No such file or directory
> previous rebase directory /home/tfarina/git/.git/rebase-apply still
> exists but mbox given.
Perhaps you tried this previously and 'git am' failed?
In which case, run 'git am --abort'.
Now.. I've _never_ had luck saving patches out of gmail.
But, I've had good luck with its imap interface.
I use mutt, save emails to an mbox file, and use 'git am'
on them. This has worked great for me.
For sending emails to the list, I use msmtp and a
~/.gitconfig setting:
[sendemail]
smtpserver = /usr/bin/msmtp
Then it's simply 'git send-email <patch-file>'.
Here's a random page explaining how to use mutt with gmail.
http://shreevatsa.wordpress.com/2007/07/31/using-gmail-with-mutt-the-minimal-way/
I can send you my .muttrc if that helps.
Here's the git wiki page about msmtp, gmail, and
git-send-email:
http://git-scm.org/gitwiki/GitTips#Usingmsmtptosendyourpatches
--
David
next prev parent reply other threads:[~2009-09-24 0:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 22:20 'git am' doubt Thiago Farina
2009-09-23 23:54 ` David Aguilar [this message]
2009-09-24 14:09 ` Thiago Farina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090923235433.GB80337@gmail.com \
--to=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=tfransosi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).