This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: git tip


On Thu, Mar 5, 2009 at 2:10 PM, Thiago Jung Bauermann
<bauerman@br.ibm.com> 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 = <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.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]