CreateUnityGitIgnores() public static method

public static CreateUnityGitIgnores ( ) : void
return void
Example #1
0
    public static void InitNewRepo()
    {
        string repoPath = GetRepoPath();

        if (repoPath == "")
        {
            repoPath = EditorUtility.OpenFolderPanel("Choose a repo directory", "", "");

            if (repoPath == "" || repoPath == null)
            {
                return;
            }

            repoPath = repoPath.Replace(@"\", "/");
            Debug.Log(repoPath);
        }
        else
        {
            Debug.Log("Repo already exists at: " + repoPath);
            return;
        }

        Debug.Log(RunGitCmd("init " + repoPath));
        UnityGitHelper.CreateUnityGitIgnores();
    }
Example #2
0
 static void CreateIgnoreFiles()
 {
     UnityGitHelper.CreateUnityGitIgnores();
 }