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: http://git.661346.n2.nabble.com/ANNOUNCE-Git-v1-8-0-rc1-tc7568792.html ~~~~~ * 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 instead. ~~~~~ --- ** [tickets:#5700] Replace "git branch --set-upstream" with "git branch --set-upstream-to" [ss2584]** **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 [forge:site-support:#2584] >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 sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
