refresh branch list git

C++
git remote update origin --prune
Source

Also in C++: