I am the owner of the Visual Studio Team Services account. I created a repo, it has 2 branches. I have given access to everyone i.e. every member can access the repo.
Though my team member didn't create the branch, he wanted to delete it, but he couldn't and I could(I also didn't create the branch). When I checked we have the same level of access i.e. both project administrators.
What could be the reason behind this issue?
Right-click the branch name and select Delete. Visual Studio will ask if you're sure you want to delete the branch if you have unpublished changes.
Visual Studio 2017 provides you easy access to both. To delete a local branch, right click on it and select Delete from the context menu. To delete a remote branch listed under the remotes/origin, right click on the desired branch and select Delete Branch From Remote from the context menu that pops up on the screen.
If you are both Project Administrators, you should check if the user has been set permission separately.
In Version control Tab https://account.visualstudio.com/project/_admin/_versioncontrol?
, check if the user has been set permission separately:
Check in the repo level: select the repo (such as Git2 in below example) -> check if the user has been set permission separately -> if yes -> check if Force Push as Deny -> if yes -> Clear explicit permissions.
Check in your two branches separately: select each branch -> check if the user has been set permission separately -> if yes -> check if Force Push as Deny -> if yes -> Clear explicit permissions.
Check Force push (rewrite history, delete branches and tags) permission for repo under Settings > Version Control is set to Allow. Force push to a branch, which can rewrite history and this permission is also required to delete a branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With