From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10646 invoked by alias); 6 Mar 2009 22:51:30 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Mail-Followup-To: archer@sourceware.org Received: (qmail 10478 invoked by uid 22791); 6 Mar 2009 22:51:30 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <1236291031.28372.44.camel@localhost.localdomain> References: <1236291031.28372.44.camel@localhost.localdomain> Date: Fri, 06 Mar 2009 22:51:00 -0000 Message-ID: Subject: Re: git tip From: Doug Evans To: Thiago Jung Bauermann Cc: Project Archer Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-SW-Source: 2009-q1/txt/msg00354.txt.bz2 On Thu, Mar 5, 2009 at 2:10 PM, Thiago Jung Bauermann wrote: > 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 = : > > 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. fwiw, I would love to see a collection of these useful tidbits appear in the wiki. It would save a ton of other people's time, I think.