src/main/php/de/codenamephp/build/task/SynchronizeWithGitUpstream.php
public function execute(string $projectFolder) {
    $this->getRepositoryApi()
        ->setDirectory(implode(DIRECTORY_SEPARATOR, [rtrim($this->getBaseFolder(), '\/'), ltrim($projectFolder, '\/')]))
        ->init()
        ->add()
        ->commit('initial commit by build')
        ->addRemote(sprintf('https://github.com/%s/%s.git', $this->getGithubOrganization(), $projectFolder))
        ->push('origin', 'master', true);
  }
public function execute(string $projectFolder) {
    $this->getRepositoryApi()
        ->setDirectory(implode(DIRECTORY_SEPARATOR, [rtrim($this->getBaseFolder(), '\/'), ltrim($projectFolder, '\/')]))
        ->init()
        ->add()
        ->commit('initial commit by build')
        ->addRemote(sprintf('https://github.com/%s/%s.git', $this->getGithubOrganization(), $projectFolder))
        ->push('origin', 'master', true);
  }
Synchronizes the local project created from protype with the newly created github repository by:

- creating the repo with init
- adding all local files
- committing with a default message
- adding the remote repository uri
- pushing everything as 'origin' on branch master while setting up tracking

@param string $projectFolder The name of the project folder the repository is located in relative to the base folder