Re: git push on tracking branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message -----
> From: "Jeff King" <peff@xxxxxxxx>
> To: "Stephen Bash" <bash@xxxxxxxxxxx>
> Cc: "Git Mailing List" <git@xxxxxxxxxxxxxxx>
> Sent: Monday, September 27, 2010 12:05:48 PM
> Subject: Re: git push on tracking branches
> On Mon, Sep 27, 2010 at 12:00:41PM -0400, Stephen Bash wrote:
>
> > Now, your local branch sf will automatically push to and pull from
> > origin/serverfix."
> 
> That has never been the case by default. Push has always defaulted to
> pushing all matching branches (so of course if you use the same name,
> it
> will end up pushing to the tracking branch). However, you can do:
> 
> git config --global push.default tracking
> 
> to explicitly change the default to push the current branch to its
> upstream. See the entry for "push.default" in "git help config".

Thanks for the clarification!

Stephen
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]