• Home
  • Blog

Archieven

  • april 2025
  • oktober 2024
  • september 2024
  • september 2023
  • maart 2022
  • maart 2021
  • september 2020
  • september 2019
  • februari 2019
  • september 2018
  • september 2016
  • september 2015
Davici
  • Home
  • Blog

Cleaning Up Git Branches in Azure DevOps


Try again to delete tCleaning up Git branches is needed from time to time to keep the workspace organised.

Using Azure DevOps most of the Git housekeeping tasks are automated. A typical default workflow follows these steps:
– From a sprint work item, a new remote (feature/bugfix) branch is created.
– Commit changes to the local branch.
– Push change to the remote repository.
– Create Pull Request to review the changes.
– Complete the Pull Request to merge the changes to the master branch.
– Delete the remote and local feature branch.

If automatic completion of a Pull Request is enabled the remote feature branch is deleted after a successful merge operation.


Despite the default DevOps Git workflow some remote branches are not cleaned up. This is the case for a work item that is cancelled or not needed anymore. Or a Pull requested was completed without the automatic delete option enabled. From time to time visit the DevOps Branches page to review and clean up unneeded branches.


Before deleting a branch, use the Compare branches option to review changes between master and the selected branch.


Deleting a branch can give the error message: “Failed to delete feature. Force push permission is required to delete branches”.


It is needed to adjust the default branch security.


In the pop-up window enable the Force push option.

AzureDevOps force push option
Try again to delete the branch and it is gone.

Tags

.NET Azure C# CTO Database DevOps Docker EDI Git HA IT developement director Microservices PostgreSQL Softwareontwikkeling Visual Studio Windows

Recent Posts

  • Technical Debt: een strategische aanpak voor duurzame softwareontwikkeling

  • How to set timezone in a Docker Windows Container

  • How to install fonts in a Docker Windows Container

  • Why WebView2 Applications Face Issues in the Program Files Folder (And How to Fix Them)

  • ClickOnce signing from Azure DevOps via Azure Key Vault

Tags: Azure,DevOps,Git

Contact

Breda, Noord-Brabant, Nederland
info@davici.nl
K.v.K. 20099979
Twitter
LinkedIn

OVERIGE

  • Algemene Voorwaarden
  • Privacybeleid
  • Cookiebeleid

Copyright © 2025 — Davici. Alle rechten voorbehouden.

Designed by WPZOOM

Beheer toestemming
Om de beste ervaringen te bieden, gebruiken wij technologieën zoals cookies om informatie over je apparaat op te slaan en/of te raadplegen. Door in te stemmen met deze technologieën kunnen wij gegevens zoals surfgedrag of unieke ID's op deze site verwerken. Als je geen toestemming geeft of uw toestemming intrekt, kan dit een nadelige invloed hebben op bepaalde functies en mogelijkheden.
Functioneel Altijd actief
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door je Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een site of over verschillende sites te volgen voor soortgelijke marketingdoeleinden.
Beheer opties Beheer diensten Beheer {vendor_count} leveranciers Lees meer over deze doeleinden
Bekijk voorkeuren
{title} {title} {title}