Can't you solve it using two remotes?
e.g. for one of my repos I have the following entries in .git/config:
[remote "origin"]
url = [email protected]:git/repo/emacs.d.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "github"]
url = [email protected]:purcell/emacs.d.git
fetch = refs/heads/*:refs/remotes/github/*
With this setup, P will push to 'origin', and 'C-u P' lets me type in
"github" to push to the other remote.
-Steve
On 3 Mar 2009, at 08:51, [email protected] wrote:
>
> Hi,
>
> I use repo.or.cz repository.
> In repo.or.cz, mirror URL and push URL is different.
> So I always fail to push from Magit.
>
> Mirror URL git://repo.or.cz/hoge.git
> Push URL ssh://repo.or.cz/srv/git/hoge.git
>
> I tried to C-u P, but I must input push URL every time.
> And magit status buffer displays this push as Unpushed Changes.
> I want to register push URL.
>
> Cheers,
> --
> rubikitch
> Blog: http://d.hatena.ne.jp/rubikitch/
> Site: http://www.rubyist.net/~rubikitch/
>
> >
--~--~---------~--~----~------------~-------~--~----~
--
http://groups.google.com/group/magit
-~----------~----~----~----~------~----~------~--~---