we are using git in Team Foundation Service, and we are trying to find a way to delete a remote branch by running the following command.
git push origin --delete TheBranchName
The remote server keep rejecting with following error
! [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'
any idea how to set correct permission to a user in TFS?