* Initialize a new Git repository * @returns {Promise }
()
| 227 | * @returns {Promise<any>} |
| 228 | */ |
| 229 | function initGitRepository() { |
| 230 | return new Promise((resolve, reject) => { |
| 231 | exec('git init', (err, stdout) => { |
| 232 | if (err) { |
| 233 | reject(new Error(err)); |
| 234 | } else { |
| 235 | resolve(stdout); |
| 236 | } |
| 237 | }); |
| 238 | }); |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * Add all files to the new repository |