allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Luberg" <>
Subject [allura:tickets] #5700 Replace "git branch --set-upstream" with "git branch --set-upstream-to" [ss2584]
Date Thu, 25 Sep 2014 04:51:51 GMT
I propose to update it as :
git push -u origin master

instead of:
git push origin master
git branch --set-upstream-to master origin/master  # so 'git pull' will work later

Refer to:

 * It was tempting to say "git branch --set-upstream origin/master", 
   but that tells Git to arrange the local branch "origin/master" to 
   integrate with the currently checked out branch, which is highly 
   unlikely what the user meant.  The option is deprecated; use the 
   new "--set-upstream-to" (with a short-and-sweet "-u") option 


** [tickets:#5700] Replace "git branch --set-upstream" with "git branch --set-upstream-to"

**Status:** in-progress
**Milestone:** forge-oct-3
**Labels:** support p3 bitesize 
**Created:** Mon Jan 28, 2013 04:22 PM UTC by Chris Tsai
**Last Updated:** Thu Sep 25, 2014 04:46 AM UTC
**Owner:** Alexander Luberg


>The example command currently is "git branch --set-upstream master origin/master", however
the --set-upstream option is deprecated:

$git branch --set-upstream master origin/master
The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to
Branch master set up to track remote branch master from origin.

Referring to the "empty git repo" instructions.


Sent from because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message