2

git tool: Tower

a branch tracking:originenter image description here and in commend line show :enter image description here.next I change tracking in tower :origin-fockenter image description here.in commend line:enter image description here

how to complete this operation at the command line with git command????

weijia.wang
  • 1,936
  • 2
  • 13
  • 31

1 Answers1

3
Without deleting anything, using git v1.8.0 or later:
git branch branch_name --set-upstream-to your_new_remote/branch_name

Or you can use the -u switch:
git branch branch_name -u your_new_remote/branch_name

Using git up to v1.7.12:
git branch --set-upstream branch_name your_new_remote/branch_name

Referred from How do I change the remote a git branch is tracking?

Also check Make an existing Git branch track a remote branch?

Community
  • 1
  • 1
Rachita Nanda
  • 4,171
  • 8
  • 39
  • 63