Add example to branch_get_upstream method

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>