jueves, 26 de junio de 2025

git branch managment

Sometimes we have plenty of branches on git, and we should keep the order on the team. Here is how to remove the branches and be on sync with the remote repo.

Refresh the remote branch information
git fetch --prune origin

Current state of the remote branches
git branch -r

Delete origin branchgit branch -d feature/backend-storage
git branch -d feature/git-integration

Delete the feature/git-integration remote branch instead
git push origin --delete feature/git-integration

No hay comentarios:

Publicar un comentario