replace git command to github api call