查看当前分支
git remote -v
删除分支 添加新分支
git remote rm origin
> git remote add origin https://gitee.com/jouypub/json.git
分支关联
git branch --set-upstream-to=origin/remote_branch your_branch
其中,origin/remote_branch是你本地分支对应的远程分支;your_branch是你当前的本地分支。
查看当前分支
git remote -v
删除分支 添加新分支
git remote rm origin
> git remote add origin https://gitee.com/jouypub/json.git
分支关联
git branch --set-upstream-to=origin/remote_branch your_branch
其中,origin/remote_branch是你本地分支对应的远程分支;your_branch是你当前的本地分支。