我们正在Team Foundation Service中使用Git,并尝试通过运行以下命令来找到删除远程分支的方法。
远程服务器一直拒绝并显示以下错误。
git push origin --delete TheBranchName
远程服务器一直拒绝并显示以下错误。
! [remote rejected] TheBranchName (TF401026: The ForcePush permission is required to perform this action.) error: failed to push some refs to 'https://xxx.visualstudio.com/DefaultCollection/_git/Xxxxxx'
你有没有想过如何在TFS中为用户设置正确的权限?