Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: git push on tracking branches

From: Stephen Bash <hidden>
Date: 2016-06-15 22:49:38

----- Original Message -----
From: "Jeff King" <redacted>
To: "Stephen Bash" <redacted>
Cc: "Git Mailing List" <redacted>
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:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help