Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • branch
  • change
  • switch

Git - Change git remote tracking branch

Switch current branch to new remote tracking branch

0
212
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Using -u flag

git branch -u {{remote_branch}}

Notes

last update: Sept. 28, 2015

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Remove remote branch
  • List branches that contain specific commit
  • Rename git branch locally
  • Merge branch into current branch
  • List branches on machine
  • Upload local branch to remote

Random task

  • Git list tags that contain commit
  • Transition
  • Toggle DOM element class
  • Switch
  • Push changes to remote
  • Blog
  • About
  • License