git remove old origin branches code example Example: remove old remote branches git git remote prune origin