If you have named a branch incorrectly AND pushed this to the remote repository follow these steps before any other developers get a chance to jump on you and give you shit for not correctly following naming conventions. 1. Rename your local branch.…
Rename your local foo branch with bar: git branch -m foo bar Remember this will add the new branch when you push, but it won’t delete the old foo remote branch. Add -f --mirror to rename the branch on the remote: git push origin -f --mirror If you ju…
I believe this occurs when you are trying to checkout a remote branch that your local git repo is not aware of yet. Try: git remote show origin If the remote branch you want to checkout is under "New remote branches" and not "Tracked remote…
IDEA点击GIT更新按钮时,报错如下: Can't UpdateNo tracked branch configured for branch master or the branch doesn't exist. To make your branch track a remote branch call, for example, git branch --set-upstream-to origin/master master 解决办法: 在IDEA的Terminal中,执行如下命令即可…