Purge local Git cache to reflect remote origin.

If you’re using a Git host (and you most likely are) you might have run into the problem where your local Git doesn’t update or show the changes after deleting a branch on your host. Even when using the git pull command. You need to purge local Git cache to reflect remote origin.
Use the following Git command to purge (prune) your local Git cache to reflect your origin:

git fetch --prune origin

Justin Mathew

A front end web developer specializing in HTML/CSS, JS, PHP & MySQL with over 10 years experience in the web development field.