protected function copyGitIgnore($source)
    {
        $source = CLI_ROOT . '/resources/' . $source;
        $gitRoot = $this->gitHelper->getRoot($this->appRoot);
        if (!$gitRoot) {
            return;
        }
        $appGitIgnore = $this->appRoot . '/.gitignore';
        if (!file_exists($appGitIgnore) && !file_exists($gitRoot . '/.gitignore')) {
            $this->stdErr->writeln("Creating a .gitignore file");
            copy($source, $appGitIgnore);
        }
    }