Use libgit2 to delete remote refs

Use libgit2 to delete remote refs
Please use "const String& out" as the ampercent is part of the type