public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* git tip
@ 2009-03-05 22:10 Thiago Jung Bauermann
  2009-03-05 22:23 ` Roland McGrath
  2009-03-06 22:51 ` Doug Evans
  0 siblings, 2 replies; 4+ messages in thread
From: Thiago Jung Bauermann @ 2009-03-05 22:10 UTC (permalink / raw)
  To: archer ml

Hi,

Perhaps everyone else knows about this except me, but I thought it would
be useful to share anyway:

To avoid having to type that big remote branch name when you are pushing
to your branch in the archer repo, you can set a default refspec to push
to when you don't specify anything to 'git push'. Just edit .git/config,
and add a line like this to the [remote "origin"] section:

  push = <local branch name>:<remote branch name>

In my case this would be:

  push = python:archer-tromey-python

So now instead of writing:

% git push origin python:archer-tromey-python

I can just type:

% git push

I don't know yet if you can add multiple push entries in .git/config to
create multiple branch mappings, but perhaps you can.
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center

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

end of thread, other threads:[~2009-03-08  4:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-05 22:10 git tip Thiago Jung Bauermann
2009-03-05 22:23 ` Roland McGrath
2009-03-06 22:51 ` Doug Evans
2009-03-08  4:37   ` Thiago Jung Bauermann

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 read-only IMAP folder(s) and NNTP newsgroup(s).