Git: send-email without commit
I ha开发者_开发知识库ve a project where I made changes, and want to send them to another user, using git send-email feature.
I found that it works by sending patches (created by git format-patch
of each commit).
Is it able to send just diff
's ? I don't want to commit first, and then send the patch.
Does git format-patch
or maybe send-email
have some parameter to just do that quickly?
Thanks in advance.
It turns out not to be possible. So I commited and tried to send-email
it, which throws an error
Command unknown: 'AUTH' at /usr/lib/git-core/git-send-email
This error is related to my smtp-server not supporting authentication.
To solve this, I commented the line in my .gitconfig
where it says smtpuser,
so that it doesn't pass any user or password to git. Then, the email gets sent without a problem.
But I still think that should have an option to use send-email
feature, sending a patch without having to commit it first.
精彩评论