fatal: The upstream branch of your current branch does not match the name of your current branch

前端 未结 5 843
时光说笑
时光说笑 2020-12-07 14:31

After doing a checkout of the remote branch releases/rel_5.4.1 using the Git GUI, I\'m seeing this unexpected error message when I try to push:

5条回答
  •  甜味超标
    2020-12-07 14:58

    This error can be fixed for once and all, with:

    git branch releases/rel_5.4.1 -u origin/releases/rel_5.4.1
    

    It changes the upstream of the branch, to match the correct remote (again).

提交回复
热议问题