git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Separate default remotes for pulling and pushing
@ 2011-05-07  8:10 David Lee
  2011-05-07  9:50 ` Sverre Rabbelier
  0 siblings, 1 reply; 14+ messages in thread
From: David Lee @ 2011-05-07  8:10 UTC (permalink / raw)
  To: git

Hello,

I couldn't find a way to do this, but it seems it would be a fairly common use-case:

I want to set up different default remotes for pushing and pulling so that I can pull from remote a using "git pull" and push to remote b using "git push". This is particularly useful when committing to projects on github, since you may only push to your fork, but you only want to pull updates from the original.

Right now, I can either set the original as my default remote, in which case I must use "git push myfork", or I can set my fork as the default remote, in which case I must use "git pull original".

Please let me know if I'm overlooking a feature already present in git that allows me to have separate remotes for pull and push. Otherwise, I hope it gets implemented in the next version of git!

Thanks for reading,
David

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

end of thread, other threads:[~2011-05-10 21:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-07  8:10 Separate default remotes for pulling and pushing David Lee
2011-05-07  9:50 ` Sverre Rabbelier
2011-05-09  8:17   ` Jeff King
2011-05-09  8:34     ` David Lee
2011-05-09 11:10       ` Jeff King
2011-05-09 19:01         ` David Lee
2011-05-09 22:06           ` Jeff King
2011-05-09 16:45     ` Junio C Hamano
2011-05-09 22:04       ` Jeff King
2011-05-09 22:46         ` Junio C Hamano
2011-05-10 20:17           ` Jeff King
2011-05-10 12:47         ` Jay Soffian
2011-05-10 20:20           ` Jeff King
2011-05-10 21:12             ` Jay Soffian

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