in Education by
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 keeps rejecting with the 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' Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
You can access security options at the repository using this way: Code->Explorer, then you have to Select a repository from the Explorer Now, in the repository details, click on the name of the repository Then Select "Manage repositories... menu" Now, you should be able to configure the rights of every contributor groups & individual users and the branches. "Rewrite" and Destroy History (allow for force push)

Related questions

0 votes
    I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I ... don't have privileges. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm trying to put an existing project under Git source control, but I'm unclear on several things. I have ... the online repository? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I'm using TFS Preview (Team Foundation Service) with one of my projects with Visual Studio 2012. I'm also ... from Visual Studio. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI ... are. Any ideas? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I have created a branch named dev. I have done a pull request to send dev code to master, when I do ... to resolve these conflicts. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    Microsoft now has support for Git repositories on their Team Foundation Service. I have an account on Team ... to TFService. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I have a Visual Studio online Team Project with a repository. I have been using this with VS 2013 for a ... and doing clone again? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I tried the following approach in my build script: git -c http.extraheader="AUTHORIZATION: bearer %SYSTEM_ACCESSTOKEN% ... Thoughts? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because ... like SourceTree. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I am using Visual Studio 2017 Community Edition (CE), and I have signed into my Microsoft account and I am ... to resolve this issue. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Feel free to recommend a better title or changes to my explanation below! I am using Windows Azure Websites ( ... a specific location? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I've just joined my friend's Team Services account (free for the first 5 users account). If I visit the home ... how to resolve this? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    Steps In Visual Studio Pulled from remote repo 1 merge conflict. Merged manually, clicked 'Accept merge' Result ... with all updates Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    What is the command to delete a branch in your remote repository? A. git delete branchname B. git branch -d branchname C. git push origin -d branchname D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    What is the command to delete a branch in your remote repository? (1)git branch -d branchname (2)None of the options (3)git push origin -d branchname (4)git delete branchname...
asked Oct 26, 2020 in Technology by JackTerrance
...