MCPcopy Create free account
hub / github.com/react-boilerplate/react-boilerplate / removeGitRepository

Function removeGitRepository

internals/scripts/setup.js:80–89  ·  view source on GitHub ↗

* Remove the current Git repository * @returns {Promise }

()

Source from the content-addressed store, hash-verified

78 * @returns {Promise<any>}
79 */
80function removeGitRepository() {
81 return new Promise((resolve, reject) => {
82 try {
83 shell.rm('-rf', '.git/');
84 resolve();
85 } catch (err) {
86 reject(err);
87 }
88 });
89}
90
91/**
92 * Ask user if he wants to start with a new repository

Callers 1

cleanCurrentRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected