git command to refresh remote branches

C++
git remote update origin --prune
git remote update origin --prune
Source

Also in C++: