internal void InitGitOnCurrentDirectory() { Git.InitRepository(); if (!File.Exists(".gitignore")) { // Scaffold gitignore string cmdletPath = FileUtilities.GetAssemblyDirectory(); File.Copy(Path.Combine(cmdletPath, "Resources/Scaffolding/Node/Website/.gitignore"), ".gitignore"); } }
internal void InitGitOnCurrentDirectory() { Git.InitRepository(); if (!File.Exists(".gitignore")) { // Scaffold gitignore string cmdletPath = Directory.GetParent(InvocationPath).FullName; File.Copy(Path.Combine(cmdletPath, "Scaffolding/Node/Website/.gitignore"), ".gitignore"); } }