예제 #1
0
        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");
            }
        }
예제 #2
0
        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");
            }
        }