java.io.IOException: Failed to resolve credentials from ~/.github or the environment.
public class MavenProject1 {
public void connectGit()throws Exception {
GitHub github = GitHub.connect();
GHRepository repo = github.createRepository(
"new-repository","this is my new repository",
"
https://www.kohsuke.org/",true/*public*/);
repo.addCollaborators(github.getUser("abayer"),github.getUser("rtyler"));
repo.delete();
}
public static void main(String args[]){
try{
new MavenProject1().connectGit();
}
catch(Exception e){
System.out.println(e);
}
}
}