# creates a branch called some_branch
# switches to this newly created branch
# pulls changes from the origin remote branch
git checkout -b some_branch origin/some_branch
git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
git branch branch_name --set-upstream-to your_new_remote/branch_name
Delete your local branch: git branch -d local_branch
Fetch the latest remote branch: git fetch origin remote_branch
Rebuild the local branch based on the remote one: git checkout -b local_branch origin/remote_branch
git branch branch_name -u your_new_remote/branch_name