Andre Schütz - Learn. Think. Reflect - Tech developer
Synchronize local GIT repo with origin

Synchronize local GIT repo with origin

You can synchronize the local GIT repository with ORIGIN. This can be useful to remove already removed branches from the local repository if these were deleted in ORIGIN.

git remote prune origin

After executing this command, all branches, that were already removed in ORIGIN, will be deleted from the local cache.

But! You still have to delete them manually form your local repository.

git branch -d BRANCH_NAME