* Initializes git repository in the directory.
()
| 124 | * Initializes git repository in the directory. |
| 125 | */ |
| 126 | async initAsync() { |
| 127 | const dotGitPath = join(this.path, '.git'); |
| 128 | if (!(await fs.pathExists(dotGitPath))) { |
| 129 | await this.runAsync(['init']); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Adds a new remote to the local repository. |
no test coverage detected