archive mirror
 help / color / mirror / Atom feed
* branch.<name>.pushremote not working with push.default simple or upstream
@ 2013-06-07 12:41 Leandro Lucarella
  2013-06-07 14:11 ` Ramkumar Ramachandra
  0 siblings, 1 reply; 9+ messages in thread
From: Leandro Lucarella @ 2013-06-07 12:41 UTC (permalink / raw)
  To: git, Ramkumar Ramachandra

Hi, I tried to use the new Git feature to push by default to a different
remote you normally pull but I had some problems. I asked in the #git
IRC channel and been told it looks like a bug and to report it here.

I have 2 remotes, origin and upstream. origin is my private fork (and I
can push to it) while upstream is read-only for me. I have only one
branch, 'master' (present in all the remotes), originally tracking

I changed branch.master.remote to upstream and set
branch.master.pushremote to origin, but when I do I git push I get an

$ git push --dry-run --verbose
fatal: You are pushing to remote 'origin', which is not the upstream of
your current branch 'master', without telling me what to push
to update which remote branch.

I'm using push.default 'simple' to stay forward compatible with Git 2.0.
In the IRC channel they suggested to try with other push.default
settings and I did. 'matching' and 'current' works, but 'simple' and
'upstream' fail with the error message above.

Thank you.

Leandro Lucarella
Senior R&D Developer
sociomantic labs GmbH <>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-06-07 18:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-07 12:41 branch.<name>.pushremote not working with push.default simple or upstream Leandro Lucarella
2013-06-07 14:11 ` Ramkumar Ramachandra
2013-06-07 15:47   ` Junio C Hamano
2013-06-07 16:14     ` Leandro Lucarella
2013-06-07 16:57       ` Ramkumar Ramachandra
2013-06-07 17:07         ` Leandro Lucarella
2013-06-07 17:33           ` Ramkumar Ramachandra
2013-06-07 16:51     ` Ramkumar Ramachandra
2013-06-07 18:34       ` Junio C Hamano

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).