check if local branch is up to date git remote show origin tidy up local branches that have been deleted from the origin git fetch --prune